How to Cheat at Windows System Administration Using Command Line Scripts

Appendix A: MS-DOS Commands Not Supported in Windows XP and Windows 2003

Introduction

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.

MS-DOS Commands Not Supported in Windows XP/2003 32-Bit Operating Systems

In this section, we will discuss the MS-DOS commands that are not supported in Windows XP/2003 32-bit operating systems.

assign

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.

Syntax

<b class="bold">assign</b> x=y[ ] /sta

Table A.1 lists the switches that are available in the assign command.

Table A.1: Switches 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.

Example

You can use the following command to redirect requests from the B: drive to the A: drive:

assign b=a

backup

backup is an external MS-DOS command that you can use to make backups of file(s).

Syntax

<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...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Software Development Services
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.