Tuesday, May 31, 2011

Can you perform more than one command in DOS?

Can you perform more than one command at once in MS DOS? And if so, how do you do it?



Im trying to make two directories, then change my current directory to one of the newly created ones at the same time, is that possible?



Im trying:



E:\md one two; cd oneCan you perform more than one command in DOS?
You're talking about executing multiple commands on one line like in Unix? Try ';%26amp;%26amp;'; instead of ';;';Can you perform more than one command in DOS?
Yes, simple command structures are '; Format C:\ U'; this means your formatting C drive with no conditons or replace U with S to copy system files when formatting. etc... If you use a start disk you'll see that a ram drive is created to hold the tools needed etc... you cant make the directory (MD) if E dosn't exist also E wont be a dos system partion anyway you need to make it so with Fdisk so with what I'd say is limited knowledge then stay clear. Suggest you download or read up on dos 6 or above 6.22 for instance, perhaps find an old pc to muck about with load the dos and use help funtion and text contained to learn more about dos.
Yes, type ';help'; [Without quotation marks] and you will see a complete list of commands
Can't be done
put the commands in one text file and save the file with the extension as bat



and double click it
You can create an MSDOS batch (.bat) file with the commands you want to execute and then run that batch file from the command prompt or by double clicking in windows explorer.

There's a good introduction here with examples

http://www.computerhope.com/batch.htm

No comments:

Post a Comment