╨╧рб▒с>■  *,■   )                                                                                                                                                                                                                                                                                                                                                                                                                                                ье┴Н@ Ё┐ jbjb┬┬ " иdиd       lжжжжжжжъъъъъ Ўъ ╢∙∙∙╔╦╦╦╦╦╦,┬ т╘ўж∙∙∙∙∙ўхжж█ххх∙ жж╔х║╥жжжж∙╔хфх╔жж╔ ╢м ┴ъът╔╔  ╔╢х╢╔х├хThe CMD Command-Line Environment in Windows XP Entering: From Start, choose Run and in dialog box type cmd Exiting: At prompt, type exit Handy keys: Stopping runaway programs: Normally CTRL/C (depressed at same time) will work. If it doesn't, try CTRL/ESC. As a last resort, close the Command Prompt window. CTRL/S acts as a toggle switch to stop output and restart it. ALT/ENTER acts as a toggle switch to go to full-screen and return to a smaller window. Standard input/output, standard error, and redirection: Normally input is from the keyboard, but a file can be used for input by redirection. Similarly, output is normally to the screen, but a file can receive output by redirection. Moreover, error messages normally go to the screen, but can be redirected to a file. Redirection Option Action file Writes standard output to file >>file Appends standard output to file 2>file Write standard error to file 2>>file Append standard error to file Examples: prompt> asc1 -e myprog.asc 2>myprog.err prompt> asc2 -e myprog.iob myprog.out 2>myprogrun1.err Issuing commands: You can edit a command line before pushing Enter by Left and right arrow keys - forward and backward in line. CTRL + arrow moves over words Home and End move to beginning and end Lines wrap automatically Up and down arrows allow you to scroll through commands and reuse old commands by pressing Enter. Tab acts as a name completion command and the command interpreter will try to complete the words so you can avoid typing. Repeatedly hitting will cycle through possible choices. But, if nothing matches, there is just no completion. (Remember, this is MS so although something like a bell should ring, it doesn't!) Example: You are at C:\Documents and Settings\Yourname and you want to change to My Documents. Then C:\Documents and Settings\Yourname> cd m followed by repeated s will cycle through all subdirectories that begin with an m or M. When My Documents appears, hit Enter for the command to be executed. Example: You are at C:\Documents and Settings\Yourname and you want to see what is in a directory that starts with a Z. Then C:\Documents and Settings\Yourname> dir z followed by repeated s will cycle through all subdirectories that begin with a z or Z. When the desired directory appears, hit Enter for the command to be executed. Handy commands: For you should use either name completion or type directory names with blanks in the names by enclosing them in quotes ("). Command Action cd change directory cd .. go up one directory dir list directory contents (of current directory) dir list directory contents del delete file exit close command window md makes a new subdirectory move move file from one directory to another rename rename a file Environment Variables and Setting the Search Path Path (not case sensitive) is a system variable which shows all the directories to be searched to find the executable code for a command when you type a command such as prompt> asc1 -e myprog.asc To see your current search path: echo %path% To set a new directory in the search path temporarily: set path=c:\;%path% This sets the new directory at the front of the path. Reverse these to set it at the end. (If you mess things up and CMD stops working, just close the window and all will disappear.) To set a directory search path permanently: Click Start; Right click My Computer; select Properties. Choose Advanced Tab and click Environmental Variables. Edit or Delete allows you to modify an existing entry. You need administrator privilege to do this. :ghowС╖╘ ( ) / S W { А е к ╠ ╤ ї ∙ ·  s З K P   e f О Х к ▒ 8A▀х·Рад┤/6:ADT┬╥Ї·+>\vж╗╩№┬фє,2     ¤¤¤¤¤∙¤∙ўўўўў¤¤ў¤¤ўў¤ўў¤ў∙¤∙ўўўўўў¤¤¤¤¤є¤5Б6Б6Б5Б>*5БL/hnЙРСЭ=|╘╒  0 X А к ╤ ·  . r s Ж ╗ ў  @ ·°°°°°°°°°°°°°°°°°°°°°°°°°°°$a$ ■@ Z ╜ ■ e Х 7╡хПР./AiЗ╛Ё (WЯ╔╩№е┴┬фЄ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤Є*Nи2     ¤¤¤¤¤¤¤¤¤¤¤¤ 1Рh░╨/ ░р=!░"░#Ра$Ра%░ i8@ё 8 NormalCJ_HaJmH sH tH <A@Є б< Default Paragraph Font         аzЩ   аzЩ7 ~  @ Є    Ё8Ё@ё   АААўЁТЁЁ0Ё( Ё ЁЁB ЁS Ё┐╦  ?ЁjmЛП /5ХЭхэi n s u З К ╛ ┴ Ё є  ( * W [ Я е ж м ц ъ , / ::::::::::::::::::  Oberta A. SlotterbeckShannon SteinfadtEMacintosh HD:Users:Seanain:web:Personal CS:files:Obie_CMD_Command.doc @А  Ho|  WМ @ @GРTimes New Roman5РАSymbol3Р Arial"ёМЁ╨h▀МиЖ▀МиЖ-i ?╬ !Ёа┤┤ББ20d= [3ГЁH  /The CMD Command-Line Environment in Windows XP:Oberta A. SlotterbeckShannon Steinfadt■  рЕЯЄ∙OhлС+'│┘0мРШ╨▄№$ @L h t АМФЬд'0The CMD Command-Line Environment in Windows XP:he Oberta A. SlotterbecknvberberNormalAShannon Steinfadtec2anMicrosoft Word 10.1@F├#@c2U┬╞@c2U┬╞-i ■  ╒═╒Ь.УЧ+,∙о0 hp|ДМФ Ьдм┤ ╝ °' M= 0The CMD Command-Line Environment in Windows XP: Title ■   ■    ■   "#$%&'(■   ¤   +■   ■   ■                                                                                                                                                                                                                                                                                                                                           Root Entry         └FЯВм3┬╞-А1Table            WordDocument        " SummaryInformation(    DocumentSummaryInformation8            !CompObj    XObjectPool            ЯВм3┬╞ЯВм3┬╞            ■                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ■      └FMicrosoft Word Document■   NB6WWord.Document.8