SET CURDIR=%cd%
echo Current directory is %CURDIR%
SET ISDISK=%CURDIR:~-1%
If "%ISDISK%" == "/" (
echo It's not a directory.
)
Else (
echo It's a directory.
)
SET CURDIR=%cd%
echo Current directory is %CURDIR%
SET ISDISK=%CURDIR:~-1%
If "%ISDISK%" == "/" (
echo It's not a directory.
)
Else (
echo It's a directory.
)