I installed and testing out Xodo, a Universal Windows Platforms (Windows Store) app. How do I create a button in TC to open a file in Xodo without making it the Windows default PDF reader?
Thank you in advance.
Button to open file in UWP App (Xodo) - Windows 'app'
Moderators: sheep, Hacker, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 40214
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Button to open file in UWP App (Xodo)
Try creating a link (e.g. on the desktop) to the app, then add that link to the button bar, with parameters %P%N.
Author of Total Commander
http://www.ghisler.com
http://www.ghisler.com
Re: Button to open file in UWP App (Xodo)
Windows Apps can be launched by Win32 applications like this:The app's name and ID must be determined beforehand, e.g. via PowerShell Get-AppxPackage command.
Example for some random app:
Regards
Dalai
Code: Select all
"%SystemRoot%\explorer.exe" shell:appsFolder\<Vendor>.<Name_and_ID_of_the_App>!App
Example for some random app:
Code: Select all
"%SystemRoot%\explorer.exe" shell:appsFolder\Microsoft.RingDoorbell_8wfdcxeq7xacm!App
Dalai
Re: Button to open file in UWP App (Xodo)
Thanks... unfortunately it does not work.
Using DRAWBOARD as the WIN10 app:
1.The shortcut method, opens DRAWBOARD, but it does not open the file. I used the %P%N parameters as recommended.
2. The second method opens an explorer window. However, WIN+R "%SystemRoot%\explorer.exe" shell:appsFolder\Drawboard.DrawboardPDF_gqbn7fs4pywxm!App opens the APP.
Other ideas would be appreciated. Thanks in advance,
Jerez
Using DRAWBOARD as the WIN10 app:
1.The shortcut method, opens DRAWBOARD, but it does not open the file. I used the %P%N parameters as recommended.
2. The second method opens an explorer window. However, WIN+R "%SystemRoot%\explorer.exe" shell:appsFolder\Drawboard.DrawboardPDF_gqbn7fs4pywxm!App opens the APP.
Other ideas would be appreciated. Thanks in advance,
Jerez
Re: Button to open file in UWP App (Xodo)
Hi Jerez,
please right click at that button and chose "Copy",
next paste that copied button-code here into the forum so we can inspect.
Also you may want to google for something like "DRAWBOARD command line" to find some working code we can next adopt for TC use.
Re: Button to open file in UWP App (Xodo)
Thanks Stefan2,
Below are the entries for the Button Bar, options (1) shortcut, and (2) appFolder. Note that the icon files direct to another, unrelated program (i.e. FlexiPDF.ext) . I searched about drawboard support of command line file opening, and apparently there is none. Thus, it makes sense the TC Button Bar command does not support it! I guess TC support would have to be through the right chick/open with method, if this is posslble.
Cordially,
Jerez
1.************
TOTALCMD#BAR#DATA
e:\users\J....\Desktop\Drawboard PDF.lnk
%P%N
C:\Program Files (x86)\SoftMaker\FlexiPDF 2019\FlexiPDF.exe,35
%P
-1
2. **************
TOTALCMD#BAR#DATA
"%SystemRoot%\explorer.exe" shell:appsFolder\Drawboard.DrawboardPDF_gqbn7fs4pywxm!App
%P%N
C:\Program Files (x86)\SoftMaker\FlexiPDF 2019\FlexiPDF.exe,35
%P
-1
Below are the entries for the Button Bar, options (1) shortcut, and (2) appFolder. Note that the icon files direct to another, unrelated program (i.e. FlexiPDF.ext) . I searched about drawboard support of command line file opening, and apparently there is none. Thus, it makes sense the TC Button Bar command does not support it! I guess TC support would have to be through the right chick/open with method, if this is posslble.
Cordially,
Jerez
1.************
TOTALCMD#BAR#DATA
e:\users\J....\Desktop\Drawboard PDF.lnk
%P%N
C:\Program Files (x86)\SoftMaker\FlexiPDF 2019\FlexiPDF.exe,35
%P
-1
2. **************
TOTALCMD#BAR#DATA
"%SystemRoot%\explorer.exe" shell:appsFolder\Drawboard.DrawboardPDF_gqbn7fs4pywxm!App
%P%N
C:\Program Files (x86)\SoftMaker\FlexiPDF 2019\FlexiPDF.exe,35
%P
-1