On Thu, 28 Oct 2004, Karl von Laudermann wrote:

> `"C:\Documents and Settings\kvonlaudermann\My Documents\foo.exe"
> "C:\Documents and Settings\kvonlaudermann\My Documents\foo.cfg"`

how about

"C:\Documents and Settings\kvonlaudermann\My Documents\foo.exe" "C:\Documents and Settings\kvonlaudermann\My Documents\foo.cfg"

....no single quotes?

> - Change the working directory to the executable's directory so that I
> don't have to specify a path and quote the executable name.
>
> - Change the working directory to the file's directory so that I don't
> have to specify a path and quote the config file name.

you have Dir::chdir?

> Any thoughts?

install linux or cygwin?  just kidding ;-)

if soft links work on windows you may be able cd to a tmp dir and set up links
for the exe and/or cfg  - just be sure to remove them in an ensure block.


cheers.

-a
--
===============================================================================
| EMAIL   :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE   :: 303.497.6469
| When you do something, you should burn yourself completely, like a good
| bonfire, leaving no trace of yourself.  --Shunryu Suzuki
===============================================================================