Dear terrani,
From your previous questions and answers, I guess that you have Visual Studio and PHP experience, which means that you have probably known what does it mean by a "variable" and control flows like a "for loop".
So I guess you are more focused into the syntax of the Windows shell. I would like to say that, in fact, the syntax of "Windows shell script" (or, batch files) has changed only a little bit since the last version of MSDOS (which is, 6.22). So, if you don't mind, I think the "before 2005" books are new enough for you.
To get some hands-on experience, you may try the command prompt by yourself. To get a list of all commands supported by cmd.exe
, you may type HELP /?
. To list all available options of a command, type /?
after the command name. For example, DIR /?
gives you a description of the DIR
command, as well as its available options. You may also seek help from the official references here. You may read the output of HELP /?
first to get a brief idea on what you can do with the commands. Then, you may try the commands you are interested by viewing its help first.
After you have some basic understandings, reading batch files written by somebody else would help, especially for the more advanced parts like ERRORLEVEL
handling. Please search your computer for files ending with .bat
. Visual Studio bundles some batch files, please try to understand them.
In my opinion, you may begin with the following commands: DIR
, COPY
, DEL
, MOVE
, ECHO
, TYPE
and XCOPY
.
Please feel free to comment if this solution is not good enough.
Asuka Kenji