DOS - PATH

1 - About

PATH in dos may refer to:

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

3 - Management

3.1 - Command

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


PATH

3.2 - Relative to Qualified

How to transform a relative path to a qualified path


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

3.3 - 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
)


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap