Page 1 of 1

Run process with spaces in executable file name

Posted: Sat Jan 19, 2008 11:06 am
by Cyril
I feel myself dumb today: how to run process (by 'process' function) if name of executable file contains spaces? (Very common case if it resides under "Program Files"). I have tried quoting -- no luck. Quoting for '!' and 'exec' works (although in a non-trivial way), but for 'process' it fails.

In fact I am trying to emulate 'fork' by calling 'process' with '(main-args)' joined back. Maybe there is a better way to do this?

Posted: Sat Jan 19, 2008 1:44 pm
by Lutz
Currently spaces are not supported in 'process' for Win32. On UNIX spaces are supported for arguments, using single quotes '.

On Win32 use the short 8.3 filename, you can find it out doing a: dir /X in the Windows command shell.

Full support for spaces in commands and arguments is on my To-Do list and will appear in a future version.

Lutz

ps: Peter (pjot) has a 'winfork' on his site: http://www.turtle.dds.nl/newlisp/index.html

Posted: Sun Jan 20, 2008 11:42 pm
by Lutz
... now supported on 9.2.17 (tomorrow, Jan 21st)

Lutz