In a button script, I use the _run command.
_run "D:\SomeExe.exe D:\Temp\FiletoProcess.txt"
Problem starts with spaces in the file name.
Then we need to enclose the file name in quotes.
Could look like:
_run “D:\SomeExe.exe” "D:\Temp\File to Process with spaces.txt"
Can’t work because of the space between executable’s name and the parameter.
_run "D:\SomeExe.exe D:\Temp\File to Process with spaces.txt"
Works in Rhino, but not for the executable.
The parameter must be enclosed in quotes, as Windows does.
The quotes can only be left out for filenames with no spaces.