1. Home
  2. Computing & Technology
  3. PC Support

Set

By Tim Fisher, About.com

What is the Set Command?:

The set command is a Recovery Console command used to show or change the status of four different environment variables.

Set Command Syntax:

set [variable ]

variable = This is the name of the environment variable.

true = This option turns on the environment variable specified in variable.

false = This option turns off the environment variable specified in variable. This is the default setting.

Set Command Variables:

The following are the only allowed environment variables you can specify as the variable:

allowwildcards = Turning this variable on will allow you to use wildcards (the asterisk) with certain commands.

allowallpaths = This variable, when enabled, will allow you to change directories to any folder on any drive.

allowremovablemedia = Turning on this variable will allow you to copy files from the hard drive to any removable media that Windows recognizes.

nocopyprompt = When this variable is enabled, you will not see a message when you try to copy over another file.

Set Command Examples:
set allowallpaths = true

In the above example, the set command is used to allow navigation to any folder on any drive using the chdir command.

set

If the set command is entered with no variables specified, as in this example above, all four variables will be listed on screen with their respective statuses. In this case, the display on your screen might look something like this:

C:\WINDOWS>set

AllowWildCards = FALSE
AllowAllPaths = FALSE
AllowRemovableMedia = FALSE
NoCopyPrompt = FALSE

Set Command Availability:

The set command is available from within the Recovery Console in Windows 2000 and Windows XP.

The set command is also accessible from the Command Prompt in any version of Windows but with different options and restrictions.

Set Related Commands:

The set command is often used with many other Recovery Console commands.

Explore PC Support
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PC Support
  4. Glossary / Terms
  5. S
  6. Set - Set Command Details - Recovery Console Command>

©2009 About.com, a part of The New York Times Company.

All rights reserved.