DOS Archives

Discussion in 'QnA (read only)' started by Sauron, Mar 4, 2006.

Thread Status:
Not open for further replies.
  1. Sauron

    Sauron New Member

    Joined:
    Jun 14, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    I need help in here
    How do i record all the commands i type in the DOS windows and the results that appear ?
     
  2. devarajan

    devarajan New Member

    Joined:
    Feb 26, 2006
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    NEVER STOP'S....
    BE CLEAR....
     
  3. imported_dheeraj_kumar

    imported_dheeraj_kumar New Member

    Joined:
    Mar 14, 2005
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai, India
    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
     
  4. hafees

    hafees New Member

    Joined:
    Feb 25, 2004
    Messages:
    405
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Kerala
    '>' 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.
     
  5. imported_dheeraj_kumar

    imported_dheeraj_kumar New Member

    Joined:
    Mar 14, 2005
    Messages:
    198
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Chennai, India
    oh yeah redirection...right...sry, got confused with c++...
     
  6. hafees

    hafees New Member

    Joined:
    Feb 25, 2004
    Messages:
    405
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Kerala
    emanym, thnx for the info. i ve never tried it on dos. now checked and satisfied. Thnx :)
     
Thread Status:
Not open for further replies.

Share This Page