Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Quick question (Dos logging)
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BioHazardousWaste




PostPosted: Wed Oct 06, 2004 4:08 pm   Post subject: Quick question (Dos logging)

When I run a command through MS-DOS how do I log it in a log file... for example, I am trying to make a program that finds all the computers on a network, logs them in a file, then displays them in a listbox.
Sponsor
Sponsor
Sponsor
sponsor
wtd




PostPosted: Wed Oct 06, 2004 5:15 pm   Post subject: (No subject)

Simple shell syntax.

To write the result to a file:

code:
C:\> Some_program > log.txt


To append the result to a file:

code:
C:\> Some_program >> log.txt
BioHazardousWaste




PostPosted: Wed Oct 06, 2004 6:29 pm   Post subject: (No subject)

Perfect... thanx
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: