Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with WSH
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00514664
Message ID:
00514685
Views:
10
>Hello,
> I need some help with the scripting host. I'm using a loader .vbs based on a suggestion made by George Tasker (Thanks George!) for keeping production machines in sync with latest software versions. However, I want to be able to set the default directory with WSH. I realize I can use a config.fpw file, or do it in the Main VFP code, but just wondering if there was a way to do it with WSH, from the VBS I'm using already. Looked through MSDN and it looks like it can't be done with the FileSystemObject. Can it be done, or what other objects should I be looking at? Thanks,

John,

First, you're welcome.

Second, if the program is being launched via a shortcut, you can set the working directory.

To accomodate various directories, I pass the full qualified file name of the configuration file. Since it's (the configuration file) is generated by a post-setup executable that's installed, it contains the default directory setting.

Finally, according to the documentation, the default default directory (whew!< g >)is that where VFP starts. I assume that this would be the case with an executable, but have never checked.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform