Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difficulty Passing Parms to VB Script Using RUN
Message
 
To
27/10/2002 03:54:02
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00715849
Message ID:
00715862
Views:
8
>Hi folks,
>
>I need to change a couple of folder names programatically which I'm doing with small VB script, and I need to pass a couple of arguments for the folders that will be renamed. My problem is that the arguments which are VFP expressions are passed to the script as the literal expressions rather than being evaluated. The following line:
>"RUN /N wscript my_script.vbs ThisForm.p_cFormProperty1 SomeOtherExression2" won't work since neither of the 2 arguments are evaluated. I tried EVALUATE(), but that didn't help.
>
>I can brute force" a solution by writing a VERY LONG DO CASE statement, but there must be a smarter way...
>
>Any ideas?
>
>Thanks,
>
Alan,

Why both with the RUN command? Use the WScript.Shell object's Run method.
George

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

Click here to load this message in the networking platform