Skip to content

Instantly share code, notes, and snippets.

@qqobb
Created March 28, 2021 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qqobb/e66e0f354b875f3a27fcc8a4a856027d to your computer and use it in GitHub Desktop.
Save qqobb/e66e0f354b875f3a27fcc8a4a856027d to your computer and use it in GitHub Desktop.
Open a PDF file at a specific page in MS Edge using Acrobat's command-line syntax.
:: Name : acro2edge.cmd
:: Purpose : Open a PDF file at a specific page in MS Edge using Acrobat's command-line syntax.
:: Details : CMD batch script for Windows, tested on Windows 10.
:: Example : acro2edge.cmd /A page=3 "C:\...\file.pdf"
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SET edgepath=C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
IF /I "%~1"=="/A" (
START "" "%edgepath%" "file:///%~4#%~2=%~3"
) ELSE (
START "" "%edgepath%" %*
)
EXIT /B
@qqobb
Copy link
Author

qqobb commented Mar 28, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment