如何通过命令提示符使用 Drawboard PDF(MS Store APP)打开 .pdf 文件? [已关闭]

问题描述 投票:0回答:0

我正在开发一个Python脚本,它根据文件名在不同的程序中启动PDF。但如果我想使用 Microsoft 应用程序 Drawboard PDF 打开 PDF,标准 Powershell 和 Python 命令只会启动软件,而不会真正打开文件。

使用标准上下文菜单效果很好(见图) Contextmenu

文件在 Drawboard PDF 软件中打开

Drawboard PDF open file

但是当我尝试使用 Powershell、Python 或 Cmd 打开该文件时,只有 Drawboard PDF 软件会打开而不会打开该文件。

Drawboard PDF no opened file

有效:

PDF 在 Firefox 中打开。

Start-Process Firefox .\Desktop\test.pdf

不起作用:

Drawbord PDF 已打开,但没有 pdf 文件...

Start-Process "C:\Program Files\WindowsApps\DRAWBOARD.DRAWBOARDPDF_6.44.7.0_x64__az88965nfbvjc\Db.App.exe" ".\Desktop\test.pdf"

任务管理器命令提示符:

Taskmanager command promt

"C:\Programm Files\WindowsApps\DRAWBOARD.DAWBOARDPDF_6.44.7.0_x64_az88965nfbvjc\Db.App.exe" -ServerName:App.AppXng8x4fsh0hwtx18bgqjhjna1wfdk1xqy.mca

Drawboard PDF 作为默认 PDF 查看器不是解决方案。 感谢您的支持。

python-3.x powershell cmd contextmenu windows-11
© www.soinside.com 2019 - 2024. All rights reserved.