7.5. Recap: Replacing Common Batch File SyntaxIn this chapter, we've looked at several of the parallels between cmd.exe batch files and MSH scripts. It's safe to assume that anything that can be expressed in batch file syntax can be translated into an MSH script, but scripts cannot just be renamed and expected to run. Table 7-1 is a quick reference that maps batch file syntax to MSH syntax. With more complex batch files, there may be a need to restructure their layout (especially if they're heavily dependent on GOTOs), but this should provide a good starting point.
Let's now turn our focus away from cmd.exe migration tasks and toward some everyday tasks that are well-suited to MSH scripts. We'll shift gears for the next few pages and cover a number of different commands, scripts, and functions without getting into too much detail. |