Button to open file in UWP App (Xodo) - Windows 'app'
Moderators: Hacker, petermad, Stefan2, white
Button to open file in UWP App (Xodo) - Windows 'app'
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.
Thank you in advance.
- ghisler(Author)
- Site Admin
- Posts: 50561
- 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
https://www.ghisler.com
https://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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
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)
Jerez wrote: 2020-03-12, 18:01 UTC 1.The shortcut method, opens DRAWBOARD, but it does not open the file. I used the %P%N parameters as recommended.
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
Re: Button to open file in UWP App (Xodo)
How do I get proper app IDs? How do I get the icon?Dalai wrote: 2020-03-11, 18:51 UTC 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.Code: Select all
"%SystemRoot%\explorer.exe" shell:appsFolder\<Vendor>.<Name_and_ID_of_the_App>!App
Example for some random app:RegardsCode: Select all
"%SystemRoot%\explorer.exe" shell:appsFolder\Microsoft.RingDoorbell_8wfdcxeq7xacm!App
Dalai
Windows 10
Re: Button to open file in UWP App (Xodo) - Windows 'app'
viewtopic.php?f=3&t=68623How do I get proper app IDs? How do I get the icon?
There will usually be a lot of .png icons in the appsfolder.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Button to open file in UWP App (Xodo) - Windows 'app'
Too bad TC can't use PNG files.petermad wrote: 2021-04-11, 16:15 UTCviewtopic.php?f=3&t=68623How do I get proper app IDs? How do I get the icon?
There will usually be a lot of .png icons in the appsfolder.
Windows 10
Re: Button to open file in UWP App (Xodo) - Windows 'app'
No problem here to assign a .png icon to an TC button.avada wrote: 2021-04-13, 18:34 UTCToo bad TC can't use PNG files.petermad wrote: 2021-04-11, 16:15 UTCviewtopic.php?f=3&t=68623How do I get proper app IDs? How do I get the icon?
There will usually be a lot of .png icons in the appsfolder.
You have to set the file mask to *.* of course
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: Button to open file in UWP App (Xodo) - Windows 'app'
Except that it utterly fails. The image viewer app's icon ends up being used, instead of the actual png file.Horst.Epp wrote: 2021-04-13, 19:59 UTCNo problem here to assign a .png icon to an TC button.avada wrote: 2021-04-13, 18:34 UTCToo bad TC can't use PNG files.petermad wrote: 2021-04-11, 16:15 UTC
viewtopic.php?f=3&t=68623
There will usually be a lot of .png icons in the appsfolder.
You have to set the file mask to *.* of course
Windows 10
Re: Button to open file in UWP App (Xodo) - Windows 'app'
2avada
Then convert the png to ico and use that. Troublesome? Yes, thank Microsoft for that with their pathetic Metro Apps.
Then convert the png to ico and use that. Troublesome? Yes, thank Microsoft for that with their pathetic Metro Apps.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar