benquick123 / Edge-PDF-Standalone-Reader

35 stars 1 forks source link

better way for some people? #2

Open 2018robert opened 10 months ago

2018robert commented 10 months ago

For some people this will work better:

Run this command once and every time you open a PDF in windows, if edge is the default PDF viewer, it will open in edge in app mode (no browser toolbars).

ftype MSEdgePDF="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" "--app=%1"

From https://superuser.com/questions/1716255/open-pdf-in-microsoft-edge-without-showing-a-url-bar

benquick123 commented 10 months ago

This almost makes this repository obsolete. However, the method described above has one drawback: it shows each opened file as a separate icon in the taskbar, which is quite annoying when you have many of them open.

This was the initial reason why I went with shortcut making since that makes Windows group opened PDFs together.

siderob commented 10 months ago

I made a one line batch that can be exe'd and doesn't need to be stored in the edge directory:

start msedge --app=%1

theComput3rNerd commented 6 months ago

I've noticed that this command doesn't work permanently, almost every restart you have to run the command again for it to work. Is there a fix to this?

aarushsonker commented 1 month ago

Was worried because of the detections on virus total, so I decided to make my own! Pretty simple here

TheFallenUSER commented 3 weeks ago

Was worried because of the detections on virus total, so I decided to make my own! Pretty simple here

The detections come from the .exe file, but if you analyze msedge.bat you will notice that it is clean. If I converted your .bat file to .exe the same thing would happen: it would be detected as malware.

aarushsonker commented 3 weeks ago

ftype MSEdgePDF="%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" "--app=%1"

Hey there! Thanks for telling me that information, as I'm still learning new things. Thanks ars