How to Cheat at Windows System Administration Using Command Line Scripts

The command shell in Windows XP/2003 uses a command-line interpreter program called cmd.exe. This interpreter provides a command-line environment to execute DOS commands, in a way similar to MS-DOS s command.com. cmd.exe is a 32-bit application, whereas command.com is a 16-bit application. In addition, cmd.exe offers many advantages over command.com, one of which is support for long filenames.
In this appendix, we will discuss the commands that were discontinued in Windows XP/2003 because either they were replaced with a better command or program or they are incompatible with the Windows XP/2003 operating system architecture.
In this section, we will discuss the MS-DOS commands that are not supported in Windows XP/2003 32-bit operating systems.
The assign command redirects disk-drive requests to any other specified drive. Executing the command without any parameters makes all the drive assignments reset to normal.
<b class="bold">assign</b> x=y[ ] /sta
Table A.1 lists the switches that are available in the assign command.
| Switch | Description |
|---|---|
| x=y | x and y specify the drive letters of the original and redirected disk drives, respectively. |
| /sta | Displays the status of disk assignments. |
You can use the following command to redirect requests from the B: drive to the A: drive:
assign b=a
backup is an external MS-DOS command that you can use to make backups of file(s).
<b class="bold">backup</b> [Source:\Path\Filename] [Target:] [/S] [/M] [/A] [/D:date] [/T:time] [/F:size] [/L:LogDrive:\Path\Log]
Table A.2 lists switches that are available...