| ||
Hi Zdenek, @echo off if exist "%programfiles(x86)%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" set PDFRdr=%programfiles(x86)%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe if exist "%programfiles%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" set PDFRdr=%programfiles%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe if exist "%programW6432%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" set PDFRdr=%programW6432%\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe if exist "%programfiles%\Adobe\Acrobat DC\Acrobat\Acrobat.exe" set PDFRdr=%programfiles%\Adobe\Acrobat DC\Acrobat\Acrobat.exe if exist "%programW6432%\Adobe\Acrobat DC\Acrobat\Acrobat.exe" set PDFRdr=%programW6432%\Adobe\Acrobat DC\Acrobat\Acrobat.exe if "%PDFRdr%x"=="x" ( echo Acrobat Reader program not found. Press any key to exit... pause >nul goto eof ) set __COMPAT_LAYER= start "" "%PDFRdr%" %1 Voila! It works. Eliminating that variable is all that's needed. So, Kim: Is ZTree setting the __COMPAT_LAYER variable? If so, why is it needed, and what would not work without it? And why is it set only if run as Admin outside of %ProgramFiles%? - John | ||
|
Messages in this Thread
- [Help!] Odd PDF problem (364) - Alan Clark - May 03,2023 at 14:50 [Help!]
- [Help!] Odd PDF problem (351) - Laurent Duchastel - May 03,2023 at 18:20
- [Help!] Odd PDF problem (330) - Alan Clark - May 03,2023 at 21:34
- [Help!] Odd PDF problem (336) - John Gruener - May 03,2023 at 20:26
- [Help!] Odd PDF problem (320) - Alan Clark - May 03,2023 at 21:37
- [Help!] Odd PDF problem (328) - Zdenek Hladik - May 08,2023 at 10:33
- Better solution for running Acrobat as Administrator (308) - John Gruener - May 15,2023 at 02:27
- [Help!] Odd PDF problem (328) - Zdenek Hladik - May 08,2023 at 10:33
- [Help!] Odd PDF problem (320) - Alan Clark - May 03,2023 at 21:37
- Fixed in v2.4.214 (167) - John Gruener - Sep 17,2023 at 00:46
- [Help!] Odd PDF problem (351) - Laurent Duchastel - May 03,2023 at 18:20