Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with WSH
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00514664
Message ID:
00514685
Vues:
11
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform