Theodore H. Smith wrote:
What I'm trying to do, is set the working directory of the tool that
I am using. Entirely reasonable since many unix tools use the current
working directory for their output or input sometimes even.
So, how do I set the current working directory on Win32?
I think you will find that it is easiest to use declares for this. The
Shellexecute command is fairly simple and allows you to specify an
application or document to launch. It also allows you to specify the
working directory and parameters. I tend to use CreateProcess, which is
a bit more complex, but it has some nice extras, such as providing the
PID of the launched process. I have examples for both of these if anyone
needs them. I'll send you my CreateProcess "shell and wait" example off
list to get you started.
hth,
Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>