Saturday, May 12, 2012

Can You Type More Than One Command At One Command Prompt?

Yes Friends you can 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, XP, Vista, 7, and later 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




Thanks Friends.....

No comments:

Post a Comment

Please Give Me Your Views

Popular Posts