Sunday 5 June 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 one|||You%26#039;re talking about executing multiple commands on one line like in Unix? Try %26quot;%26amp;%26amp;%26quot; instead of %26quot;;%26quot;|||Yes, simple command structures are %26quot; Format C:\ U%26quot; 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%26#039;ll see that a ram drive is created to hold the tools needed etc... you cant make the directory (MD) if E dosn%26#039;t exist also E wont be a dos system partion anyway you need to make it so with Fdisk so with what I%26#039;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 %26quot;help%26quot; [Without quotation marks] and you will see a complete list of commands|||Can%26#039;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%26#039;s a good introduction here with examples


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