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:
00081094
Views:
25
What happens when you perform just a
run net use LPT1 \\blah\blah
?

Also, what happens when you perform a
run TryIt.bat
where TryIt.bat contains
net use LPT1 \\blah\blah
?


I realize this isn't a complete solution, but I am wondering what happens here...


Joe


>>>>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.
>
>I should clarify here: We are using FP2.6 for DOS and the output of the net use command is being shown on the application screen. We are trying to supress this output. Even when I try 'run net use LPT1 \\blah\blah > NULL' the net use output is printed to the FP console. I've also tried using NOCONSOLE with no results. Hmm..this is a tricky one.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Reply
Map
View

Click here to load this message in the networking platform