Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-03-2006, 02:29 PM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Jun 2005
Location: I need help in here
Posts: 8
Default DOS Archives


How do i record all the commands i type in the DOS windows and the results that appear ?
Sauron is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 04-03-2006, 03:33 PM   #2 (permalink)
In The Zone
 
Join Date: Feb 2006
Location: NEVER STOP'S....
Posts: 215
Default

BE CLEAR....
devarajan is offline  
Old 04-03-2006, 06:39 PM   #3 (permalink)
Broken In
 
Join Date: Mar 2005
Location: Chennai, India
Posts: 198
Default

suppose u type a commad lets say command /?

command /? >>pqr.txt

>> is called insertion operator. it puts the output of command /? into pqr.txt

if you use xp, just copy and paste...

this method works with almost all commands and even external executables
__________________
I am the Master of Havoc, Wielder of Destruction. I am...
Dheeraj Kumar!
imported_dheeraj_kumar is offline  
Old 05-03-2006, 12:15 AM   #4 (permalink)
In The Zone
 
hafees's Avatar
 
Join Date: Feb 2004
Location: Kerala
Posts: 405
Default

'>' is output redirection and
'<' is input redirection.

For eg: dir > dir_file
The output of this command will not be displayed on screen. it will be stored in dir_file.

the difference b/w > and >> is, the last one appends the results with the previous contents.
eg: dir >dir_file (dir_file created with directory listing)
tree >> dir_file (the output of the tree command is appended to the dir_file.)
but if we sue tree > dir_file the previous contents will be lost.

In DOS, even if you redirect the output, error messages will be displayed on screen.
But in unix, linux shells, you can also redirect error messages to files.
__________________
Quitters Never Win & Winners Never Quit!
hafees is offline  
Old 05-03-2006, 10:46 PM   #5 (permalink)
Broken In
 
Join Date: Mar 2005
Location: Chennai, India
Posts: 198
Default

oh yeah redirection...right...sry, got confused with c++...
__________________
I am the Master of Havoc, Wielder of Destruction. I am...
Dheeraj Kumar!
imported_dheeraj_kumar is offline  
Old 05-03-2006, 11:43 PM   #6 (permalink)
In The Zone
 
hafees's Avatar
 
Join Date: Feb 2004
Location: Kerala
Posts: 405
Default

emanym, thnx for the info. i ve never tried it on dos. now checked and satisfied. Thnx
__________________
Quitters Never Win & Winners Never Quit!
hafees is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clmlbx
- by gforz
- by Who

Advertisement




All times are GMT +5.5. The time now is 04:58 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2