Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN Command
Message
 
To
03/07/2002 14:44:22
Todd Brown
Teachers Credit Union
Granger, Indiana, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00675061
Message ID:
00675067
Views:
11
This message has been marked as a message which has helped to the initial question of the thread.
>I am having problems passing a variable through the run command to DOS. I am listing small example of what I am trying to do. The following statement works without any problems
>
>MvTmp = "0531"
>!"dir c:\data\perfmeas\dbf" + MvTmp + "\*.* > tmp.txt"
>
>The problem is when the memory variable is before the dbf. So this works ...\dbf" + MvTmp..., but I cannot figure out how to get this to work ...MvTmp + "dbf\*.*...
>
>Thanks
>Todd

Maybe try this...
lcDir = >!"dir c:\data\perfmeas\dbf" + MvTmp + "\*.* > tmp.txt"
! &lcDir

or maybe use ! (lcdir) - FYI there might be an issue if you have spaces in the part after the DIR...
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform