Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- if "%1"=="/?" (
- echo this is assocx
- goto:eof
- )
- set per=""
- set asd=.%1
- for /f "tokens=4" %%i in ('reg query "HKCR\%asd%" /ve ^2^>nul') do (
- set per=%%i
- )
- if %per% == "" (
- echo Fail
- goto :eof
- )
- for /f "delims=\ tokens=4 " %%i in ('reg query "HKCR\%per%\shell"') do (
- for /f "tokens=4,*" %%a in ('reg query "HKCR\%per%\shell\%%i\command" /ve') do (
- echo %%i %%a %%b
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment