Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO off
- SETLOCAL ENABLEEXTENSIONS
- set ATTR=%~a1
- set DIRATTR=%ATTR:~0,1%
- if /I "%DIRATTR%"=="d" GOTO IS_FOLDER
- ECHO 0
- GOTO EOF
- :IS_FOLDER
- ECHO 1
- :EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement