I wrote this batch to find the path for Acrobat no matter what version you installed.
@echo off
for /F "tokens=1,2*" %%A in ('reg query "HKCR\.pdf" /ve ^| findstr.exe /I Default') DO (
set KEY=%%A
set TYPE=%%B
set VALUE=%%C
)
for /F "tokens=1,2*" %%A in ('reg query "HKCR\%value%\Shell\Open\Command" /ve ^| findstr.exe /I Default') DO (
set KEY=%%A
set TYPE=%%B
set VALUE=%%C
)
call :GETPATH %value%
echo %acropath%
echo %acroshortpath%
pause
goto :EOF
:GETPATH
set acropath=%~1
set acroshortpath=%~s1
goto :EOF
pause
1 comment:
nice!
Post a Comment