Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run dos command, get result in string
Message
 
To
18/12/2005 16:34:02
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01079030
Message ID:
01079207
Views:
14
>One way is to redirect the DOS command output to a file, >e.g.
SomeDOSCommand <optional parameters> >C:\DOSCommandOutput.txt
You can then use FILETOSTR() in VFP to read in >the contents of C:\DOSCommandOutput.txt .

I had to add the "Run" command before the SomeDosCommand to let it work. Thanks.
Zakaria al Azhar
My blog on Actuaris.net
Previous
Reply
Map
View

Click here to load this message in the networking platform