DOS - SET Command

Card Puncher Data Processing


Displays, sets, or removes Windows environment variables.


Windows Path

Set a Windows 8.3 Pathname

set JAVA_HOME=c:\Progra~1\Java\jdk1.8.0_45

REM SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_45"


Files\Java\jdk1.8.0_45“” was unexpected at this time.

You need to use the Windows 8.3 Pathname notation. See windows_path

Discover More
Card Puncher Data Processing
DOS - Delayed environment variable

From the set help. The current expansion happens when a text block is read, not when it is executed. Here below, you have the example of an immediate variable expansion with an if block The following...
Card Puncher Data Processing
DOS - Environment variable

Card Puncher Data Processing
DOS - Input

How to ask input data at the console. The set command with the /P switch allows to set the value of a variable to a line of input entered by the user. where: promptString (Optional) displays...
Card Puncher Data Processing
DOS - Parsing (File, Command, Variable) - FOR F option

parsing in DOS is done via the F option of the FOR command where: the option /F means (file|text) processing % and %% indicates that we are in presence of a variable % is used in on-line mode...
Card Puncher Data Processing
Dos - Command

A command is: a Dos command (See below). of an utility. The DOS command are extended with management tools located in C:\Windows\System32...
Card Puncher Data Processing
Dos - User Interaction

The user interaction is done through: the set command that will prompt a message and set a variable with the value entered by the user. the choice command (List choice)
Card Puncher Data Processing
How to manage variable in dos? Environment variable

How to manage variables in dos. A variable name: must only be made up of: alphabetic characters, numeric characters and underscores, cannot begin with a numeric character. cannot be...
Environment Variable
Windows - Environment Variable

An environment variable is an operating system variable that use the hosted application to set application parameters. They can be set on different scopes: for a shell thread with the set DOS command...

Share this page:
Follow us:
Task Runner