Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run a WHS script form VFP
Message
De
12/09/2000 12:04:18
Steve Buttress
Steve Buttress Software Consulting
Bloomington, Californie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Run a WHS script form VFP
Divers
Thread ID:
00415433
Message ID:
00415433
Vues:
74
I am trying to run a Windows script from VFP, and it works fine, except I can't seem to get the script to use the parameter I pass it. I haven't used the scripting engoine before, but the syntax seems to be:

run /n4 wscript.exe myscript.vbs

I tried adding a parameter as:

run /n4 wscript.exe myscript.vbs "c:\mypath"

The script runs without error, but the path isn't used. I did DIM a variable in the script, but can't see anyway to identify the varible with an incoming parameter.

What I want to do is send a path to he script by way of a variable. The sample code uses the %winddir% example, but "windir" is a known location. I need to send the path to my APP. Can this be done, and if so how?

Thanks,
Steve Buttress, MCP
ProMatrix MVP - Life
ProSysPlus Developer
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform