[Toc][Index]

Multiple Commands


You can type several commands on the same command line, separated by an 
ampersand [&].  For example, if you know you want to copy all of your .TXT 
files to drive A: and then run CHKDSK to be sure that drive A's file 
structure is in good shape, you could enter the following command: 


        [c:\] copy *.txt a: & chkdsk a:

You may put as many commands on the command line as you wish, as long as 
the total length of the command line does not exceed 1023 characters. 
You can use multiple commands in alias definitions and batch files as well 
as from the command line. 
If you don't like using the default command separator, you can pick 
another character using the SETDOS /C command or the CommandSep directive 
in the .INI file.  If you plan to share aliases or batch files between 
CMD.EXE and 4DOS, 4NT, or Take Command, see Special Character 
Compatibility for details about choosing compatible command separators for 
two or more products. 

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs