Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 93817

Re: Adobe Reader launched from command line flashes on screen then disappears without error

$
0
0

I know this is an older post, but I came across a similar problem today. 

     Starting: %ProgramFiles%\Adobe\...\AcroRd32.exe /N filename.pdf 

just flashed the screen.

 

I had recently installed Acrobat on this machine, so I switched to start Acrobat.exe instead and all is fine.

 

I still see AcroRd32.exe under the Acrobat installed folder, so not sure why AcroRd32.exe doesn't work, but now my BATCH command first looks for Acrobat.exe and executes it if it's present, otherwise it looks for AcroRd32.exe and executes it.

 

set ADOBE_EXE=

for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles(x86)%\Adobe\Acrobat.exe" /s /a /b`) do @set ADOBE_EXE=%%I

if not "%ADOBE_EXE%"=="" goto OPEN_PDF

for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles%\Adobe\Acrobat.exe" /s /a /b`) do @set ADOBE_EXE=%%I

if not "%ADOBE_EXE%"=="" goto OPEN_PDF

for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles(x86)%\Adobe\AcroRd32.exe" /s /a /b`) do @set ADOBE_EXE=%%I

if not "%ADOBE_EXE%"=="" goto OPEN_PDF

for /f "usebackq tokens=1* delims=" %%I in (`dir "%ProgramFiles%\Adobe\AcroRd32.exe" /s /a /b`) do @set ADOBE_EXE=%%I

 

:OPEN_PDF

jar -xf %JARFILE% %PDFNAME%.pdf

"%ADOBE_EXE%" /N %PDFNAME%.pdf

erase %PDFNAME%.pdf >NUL 2>&1


Viewing all articles
Browse latest Browse all 93817

Trending Articles