Is there anyway to specify the Directory as a 'CURRENT' directory versus a fixed directory? I want the ShellExecute to launch a file on the root of a CD no matter the Drive letter.
Any help is appreciated.:confused:
Printable View
Is there anyway to specify the Directory as a 'CURRENT' directory versus a fixed directory? I want the ShellExecute to launch a file on the root of a CD no matter the Drive letter.
Any help is appreciated.:confused:
You mean like "\stuff.bat" (that will run from the root of the current drive)?
There's a SetCurrentDirectory API call that can change it.
Quote:
Originally posted by JoshT
There's a SetCurrentDirectory API call that can change it.
I believe the ChDir statement is the same as that API function.