Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- if not exist %cd%\ext\ md ext
- if not exist %cd%\int\ md int
- for /f "skip=1 tokens=1 " %%i in ('help ^| findstr "^[A-Z]" ^| findstr /v "GRAFTABL" ^| findstr /v /x "For" ') do (
- if exist %SYSTEMROOT%\system32\%%i.exe (
- "help" %%i > %cd%\ext\%%i.txt
- ) else (
- if exist %SYSTEMROOT%\system32\%%i.com (
- "help" %%i > %cd%\ext\%%i.txt
- ) else (
- if exist %SYSTEMROOT%\%%i.exe (
- "help" %%i > %cd%\ext\%%i.txt
- ) else (
- if exist %SYSTEMROOT%\%%i.com (
- "help" %%i > %cd%\ext\%%i.txt
- ) else (
- "help" %%i > %cd%\int\%%i.txt
- )
- )
- )
- )
- )
Add Comment
Please, Sign In to add comment