Personal web page: Emmanuel Branlard
SEARCH RESULTS FOR: #DOS

Extract SVN revision number, revision range, branch name from a given directory (edit)
This posts presents a set of commands to determine the SVN revision number, revision range and branchname of a current directory. The in...
DOS - Check error level (return status) of a command (edit)
rem Call a command sed.exe -i "s/foo/bar/g" foo.txt rem Check status call :check rem Function to check error level :chec...
DOS - Get script path (edit)
Getting script path: set SCRIPT_PATH=%~dp0
DOS - Loop through files in alphabetical order (edit)
The trick is to use dir /b /on: for /F "tokens=*" %%f in ('dir /b /on "C:\Dir\*.exe"') do s...
DOS - Get basename of a file (edit)
FOR %%i IN ("%FILENAME%") DO ( SET BASENAME=%%~ni)
DOS - Basics and useful commands (edit)
Batch scripts Setting a variable set BRANCH=trunk Arguments: %1, %2 Characters are escaped with ^, e.g. ^| and ...