You're welcome.
I am not allowed to share the .bat script file with you for security reasons but I can share the content of it and you can create the script yourself and here is how.
- Open Notepad (click the start button and type notepad).
- Copy the content I posted above, starting at "@echo off" and ending at "exit".
- Paste that into Notepad.
- Click "File" then "Save As".
- At the bottom change the "Save as type:" to "All Files".
- At "File Name" give the file a name, it can be whatever you want but it must end in ".bat" (without the quotes). Example: FixPreviewPane.bat
- Select the location where you want to save it. Desktop is a good place.
- Click "Save".
- Go to the location where you saved it. Right click the file you just made and click "Run as administrator".
- Click "Yes" to the prompt".
You should now be able to view your .pdf files in preview pane, assuming you have Foxit installed.
I think for Adobe Reader you would use this:
@echo off
REM Check if Microsoft PDF Previewer took over the preview pane.
for /f "tokens=3" %%a in ('reg query "HKCR.pdf\ShellEx{8895b1c6-b41f-4c1c-a562-0d564250836f}" /VE ^|findstr /ri "REG_SZ"') do if %%a=={3A84F9C2-6164-485C-A7D9-4B27F8AC009E} (goto Fix) else (exit)
:Fix
REM Check for Admin.
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
REM Fix preview pane - set it to work with Foxit Phantom PDF
REG add HKCR.pdf\ShellEx{8895b1c6-b41f-4c1c-a562-0d564250836f} /ve /d {DC6EFB56-9CFA-464D-8880-44885D7DC193} /f
REG add HKCR.pdf\ShellEx{8895b1c6-b41f-4c1c-a562-0d564250836f} /v PrevPreviewHandler /d {DC6EFB56-9CFA-464D-8880-44885D7DC193} /f
exit