Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to specify working directory with 'run' command?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00282962
Message ID:
00283094
Views:
21
>Is there any way to specify the working directory when using the
>run command? Working directory meaning that which you would
>specify in a windows shortcut as 'start in'.
>

RUN inherits the current working directory from VFP, as Doug noted, so CD or SET DEFAULT TO before issuing the RUN command will work.

My API_APPRUN class allows you to specify a starting directory and will fire up anything that the RUN command will, and gives better control over the child process (you can run and wait on completion, or run and return to VFP immediately, monitoring the child's execution and termination from VFP.) You can control the initial ShowWindow state of DOS and WinApps from API_APPRUN as well.

You can download API_APPRUN from here on UT in the Files Section.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform