Skip to main content

Posts

Showing posts from August, 2011

multiple commands at command prompt

Question Can you type more than one command at one command prompt? Answer Yes, use the pipe or the ampersand to separate your commands. The shell and version of Windows you are using decides what character to use. Below are some additional examples for each version of Windows and shell. In both of these examples the command would first get to the root of the current drive and then run the dir command to list the current contents of the root. Microsoft Windows 95, Windows 98 and Windows ME users cd\ | dir Microsoft Windows 2000 and Windows XP users using the command shell Instead of using the pipe Microsoft decided to change it to the ampersand (&) for reasons unknown by us. Therefore you would need to type the below command to have the same results as earlier versions of Windows. cd\ & dir