Commit 8bc6ff9d authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

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

parent 9d63b914
......@@ -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
......@@ -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@\
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment