Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running DOS Commands and Returning Result Codes?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00080871
Message ID:
00080904
Views:
32
>>>>>I need to be able to run a DOS command (in particular the "net use" command) and see any results given by the command. In other words, instead of the results being printed to the screen I need them to be returned to my foxpro program. Any ideas? Hmm...I'm stymied.
>>>>
>>>>TRY "run net use >somefile"
>>>>then examine somefile for the output and you can work with it from there.
>>>
>>>That was the first thought I had too, but the problem is in NT 3.51 (we are running a citrix server) the output is still printed to the screen.
>>
>>you could try "run net use >>somefile" or put it in a .bat file and execute that.
>
>>>somefile will output the results to the file, but it will not surpress the >>>output to the screen. So, I can still see the results of the net use command >>>at the bottom of my screen in the app. Hmm..

Come to think of it, I can't even surpress the output when at a DOS prompt. 'dir > test.txt' will show you nothing, but 'net use > test.txt' displays the output anyway. Way annoying.

Michael G. Emmons
memmons@nc.rr.com
Previous
Reply
Map
View

Click here to load this message in the networking platform