>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