Category Archives: MS-DOS

Batch File to Determine Operating System Version

Many DOS commands in the 32-bit versions of Windows are similar but support different parameters or a few different commands. Thus, if you wish to write a batch file that can run on different types of machines, it may prove beneficial to determine the version of Windows on which the batch file is running. This way the batch… Read More »

Batch file SLEEP Command

Most operating systems provide a command in batch files to sleep, or wait, a certain number of seconds. This is great in that batch files can display text, allowing you time to read before continuing. Or, batch files may wait a few seconds in order to connect to other resources.

Display Command History

To display a list of commands entered in a current DOS prompt session under Windows XP, just enter in the following command at the DOS prompt:

What is the PATH?

Display or set a search path for executable files. Syntax PATH pathname [;pathname] [;pathname] [;pathname]…PATHPATH ; Key switch description pathname drive letter and/or folder ; the command ‘PATH ;’ will clear the path PATH without parameters will display the current path. The %PATH% environment variable contains a list of folders. When a command is issued at the CMD… Read More »

DEL and DELTREE

In MS-DOS, DEL and DELTREE are commands used for deleting files and directories, but they have some key differences in how they operate.