Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect DOS output messages

Status
Not open for further replies.

diesirae

Programmer
May 20, 2003
18
AR
First of all, excuse me about my english...

This is to be made in Fox2.5 For DOS

How can I redirect DOS/Win/Novell outputs messages to a Fox windows.

Commands like:
-NET USE
-FLAG
-COPY
etc etc

When I execute a NET USE command, sends a lot of information to de screen, and that overwrites or makes schroll the screen.
I've tried with COPY xxxx.txt W:\zzz\ttt.txt >NUL, but that makes the screen blinks.

Thanks!!
 
Here is a solution that is not very elegant
1. Redirect the output to a file
2. Create a table with 1 field titled LINE
3. APPEND from the redirected output file TYPE SDF
4. BROWSE the table in a Foxpro window
 
This code does something like cricket suggested:

!dir *.dbf >yourfile.txt
DEFINE WINDOW yourwin FROM 0,0 TO 24,79;
SYSTEM GROW CLOSE ZOOM FLOAT;
SHADOW COLOR SCHEME 10 TITLE 'Dos Output'
MOVE WINDOW yourwin CENTER
ON KEY LABEL enter KEYBOARD '{ESC}'
MODIFY FILE yourfile.txt NOEDIT WINDOW yourwin
ON KEY LABEL enter
RELEASE WINDOW yourwin
 
It works with a lot of commands but... with the old FLAG.EXE of novell don´t. By the moment, is the only one revel command.

Thanks!!!!!!!!!!!!
!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top