cmd: Added some expansion tests.

This commit is contained in:
Yann Droneaud 2010-03-09 13:15:35 +01:00 committed by Alexandre Julliard
parent ef058b3030
commit 9bad2febf3
2 changed files with 30 additions and 0 deletions

View File

@ -23,6 +23,21 @@ cd dummydir
echo %~dp0
cd ..
rmdir dummydir
echo %CD%
echo %%
echo P%
echo %P
echo %UNKNOWN%S
echo P%UNKNOWN%
echo P%UNKNOWN%S
echo %ERRORLEVEL
echo %ERRORLEVEL%
echo %ERRORLEVEL%%ERRORLEVEL%
echo %ERRORLEVEL%%
echo %ERRORLEVEL%%%
echo P%ERRORLEVEL%
echo %ERRORLEVEL%S
echo P%ERRORLEVEL%S
echo ------------ Testing if/else --------------
echo if/else should work with blocks

View File

@ -16,6 +16,21 @@ bar
~dp0 should be directory containing batch file
@pwd@\
@pwd@\
@pwd@
%
P
P
S
P
PS
ERRORLEVEL
0
00
0
0%
P0
0S
P0S
------------ Testing if/else --------------
if/else should work with blocks
if seems to work