my problem is in summary (detailed below):
- I can pass 2 arguments containing pathnames to a windows script as long as those pathnames do not contain white spaces.
- If there are spaces, this can be fixed by adding quotes around the pathname, but this only works when passing 1 argument, not 2.
- Unfortunately, I need both arguments.
Details:
I have a small .exe compiled for windows that performs some rather sophisticated format conversion. It needs 2 input arguments. The call looks like:
Code: Select all
wine /location/of/exe/xtrx2xtr.exe -c/location/of/some/other/files /even/more/files
Code: Select all
wine "/location/of/exe/xtrx2xtr.exe" "/even more files"
The calls (with quotes in different positions)
Code: Select all
wine "/location/of/exe/xtrx2xtr.exe" -c"/location/of/some/other/files" "/even more files"
wine "/location/of/exe/xtrx2xtr.exe" "-c/location/of/some/other/files" "/even more files"
wine "/location/of/exe/xtrx2xtr.exe" "-c/location/of/some/other/files /even more files"
Unfortunately, the spaces can't be avoided.
Thanks for reading/maybe helping!
AP
(using wine-2.12 on openSUSE Leap 42.2)