Programming‎ > ‎Language‎ > ‎

Bat

na na na na na na na na na na na na na na na na

Batch file's are text files with commands that are executed. DOS and windows style.

How to write to a text file.
Use echo command and redict the output to a text file. Redict with two > appends to the file.

echo Hello > test.txt
echo World >> test.txt

Get Current directory
The working directory is stored in "%CD% and the directory when the bat was run is stored in %~dp0.'

How to Access Environment Variable
Put it inside %.

%QT_DIR%



Comments