>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement