Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




Reference number: CH000177

Can you type more than one command at one 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

 

 

 

Index

Category:
MS-DOS Q&A

Companies:
Microsoft

Related Pages:

 

Resolved

Were you able to locate the answer to your questions?

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope