| > | Sends output to a named file. If file does not exist, it creates one. Overwrites existing file | command > somefile |
| >> | Appends output to contents of a named file or creates a file if none exists | command >> somefile |
| < | Uses contents of a named file as input to a command | command < somefile |
| ¦ | Sends (“pipes”) the output of command1 to the input of command2 | command1 ¦ command2 |
| & | Used to combine two commands. Executes command1 and then command2 | command1 & command2 |
| && | A conditional combination. Executes command2 if command1 completes successfully | command1 && command2 |
| ¦¦ | Command2 executes only if command1 does not complete successfully. | command1 ¦¦ command2 |
| @ | Used in batch files at the beginning of a line to turn off the display of commands | @echo off |
Did you know that Windows 7 has a GodMode? What GodMode does is enable you to have a place where you can get to all the settings without having to browse around and click through options and folders in control panel.
Add a new folder to your desktop and name it GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
Now when you click on that icon you it will open up the following folder…
Warning…although GodMode works on Vista 32 bit and 32 bit Windows Server 2008 it does not work on Vista 64 bit sp2 and 64 bit Windows Server 2008…
command > file Write standard output of command to file
command 1> file Write standard output of command to file (same as previous)
command 2> file Write standard error of command to file (OS/2 and NT)
command > file 2>&1 Write both standard output and standard error of command to file (OS/2 and NT)
command >> file Append standard output of command to file
command 1>> file Append standard output of command to file (same as previous)
command 2>> file Append standard error of command to file (OS/2 and NT)
command >> file 2>&1 Append both standard output and standard error of command to file (OS/2 and NT)
commandA | commandB Redirect standard output of commandA to standard input of commandB
commandA 2>&1 | commandB Redirect standard output and standard error of commandA to standard input of commandB (OS/2 and NT)
command < file command gets standard input from file
command 2>&1 command’s standard error is redirected to standard output (OS/2 and NT)
command 1>&2 command’s standard output is redirected to standard error (OS/2 and NT)