Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setlocal
- if "%1" == "" goto noArg
- set fullpath=%~$PATH:1
- if "%fullpath%" == "" goto notFound
- echo Found in PATH: %fullpath%
- goto end
- :noArg
- echo No Argument specified
- goto end
- :notFound
- echo Argument "%1" not found in PATH
- :end
- endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement