Nice DOS commands

A collection of useful DOS and Windows batch scripting snippets

Because i often must search for my written DOS-stuff now i would try to write here some interesting lines

Batch which needs an user-input

ECHO ITCC.DLL registrieren?
SET /P X= (J)a oder (N)ein?
IF /I "%X%"=="J" GOTO :ja
IF /I "%X%"=="N" GOTO :nein

:ja
ECHO Registriere
REGSVR32 ".\..\build\HTML Help Workshop\itcc.dll"
ECHO Registriert
GOTO Ende

:nein
ECHO Keine Registrierung erfolgt

:ende
PAUSE

Working with PUSHD and POPD

PUSHD %CD%
CALL "Copy Ressources.bat"
POPD

REM PUSHD ".\..\tools\Sandcastle\"
REM SET DXROOT=%CD%
REM SET Path=%Path%;%CD%
REM POPD

PUSHD ".\..\tools\Sandcastle\ProductionTools\"
SET Path=%Path%;%CD%
POPD

.\..\tools\Sandcastle Help File Builder\SandcastleBuilderConsole.exe" EsriDE.Samples.shfb -v

IF-Construct

IF NOT EXIST Content MKDIR Content
CD Content

Printing an empty line

ECHO.

Deleting a folder-structure

IF EXIST work RMDIR /S /Q work