DOS - PATH

Card Puncher Data Processing

About

PATH in dos may refer to:

  • the command
  • or to the path of a file.

Management

Command

The PATH command displays or sets a search path for executable files.

PATH

Relative to Qualified

How to transform a relative path to a qualified path

pushd .
cd /D %domainHome%..
SET domainHome=%CD%
popd

Get path information from a string

By using argument modifiers

  • Example with directory
set MY_PATH=C:\Hello\Nico

call :dir_name_from_path MY_DIR MY_PATH
echo %MY_DIR%

:dir_name_from_path <dir> <path>
(
    set "%~1=%~dp2"
    exit /b
)





Discover More
Card Puncher Data Processing
Dos - (Batch) Script

The batch script is a text file with the extension .bat or .cmd that is interpreted by a batch interpreter. You can call a batch script by : writing its name in the source script: The script execution...
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 - Command line (Argument|Parameter)

Command line arguments for DOS are passed to: the batch script through the cmd or call command: the function (subroutine) through the call command: variablesIf Defined Variable statement “”...



Share this page:
Follow us:
Task Runner