1.

How To Type More Than One Command At One Command Prompt?

Answer»

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. In both of these examples the cd 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 2000, XP, Vista, 7, and 8 users

Instead of using the pipe Microsoft decided to change it to the ampersand (&) for reasons unknown. So, type the below command to have the same results as earlier versions of Windows.

cd & dir

Microsoft Windows 95, 98, and ME users

cd | dir

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. In both of these examples the cd 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 2000, XP, Vista, 7, and 8 users

Instead of using the pipe Microsoft decided to change it to the ampersand (&) for reasons unknown. So, type the below command to have the same results as earlier versions of Windows.

cd & dir

Microsoft Windows 95, 98, and ME users

cd | dir



Discussion

No Comment Found