cmd: Add test to show ~dp0 should be directory containing batch file.

This commit is contained in:
Dan Kegel 2010-02-16 12:44:16 -08:00 committed by Alexandre Julliard
parent 9d63b91405
commit 8bc6ff9d90
2 changed files with 13 additions and 0 deletions

View File

@ -14,3 +14,12 @@ echo ------------ Testing 'set' --------------
echo set "FOO=bar" should not include the quotes in the variable value
set "FOO=bar"
echo %FOO%
echo ------------ Testing variable expansion --------------
echo ~dp0 should be directory containing batch file
echo %~dp0
mkdir dummydir
cd dummydir
echo %~dp0
cd ..
rmdir dummydir

View File

@ -12,3 +12,7 @@ at-echoed-word
------------ Testing 'set' --------------
set "FOO=bar" should not include the quotes in the variable value
bar
------------ Testing variable expansion --------------
~dp0 should be directory containing batch file
@pwd@\
@pwd@\