Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with a loader utility in WSH
Message
De
10/09/2001 21:20:28
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00554934
Message ID:
00554961
Vues:
16
>Hey everyone,
>I'm using a loader utility written in VBS for WSH that basically checks for an updated EXE, if it is there, copy it local and run it. I am not running a config.fpw with this, and a problem is created where several temp file are being created when the EXE starts. There are several users (about 250) of this VBS, and they all run the same file from the network. When they run it, it starts them in this network directory where the VBS resides, until they reach a configuration object in the VFP EXE that SET DEFAULT TO blahblah. Is there a way to SET DEFAULT TO in WSH, or something similar to that. Does this make sense? Thanks,
>John

To open a program with a different working dir than that of a wsh script, you can create a temporary shortcut file with the shell object. Just set its .WorkingDirectory property (and .TargetPath) and then .Run it.

In version 5.6 the WSH (still in beta) will have a Currentdirectory property (or something like that).

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform