Button to open file in UWP App (Xodo) - Windows 'app'

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
risk
Junior Member
Junior Member
Posts: 80
Joined: 2007-07-30, 03:18 UTC

Button to open file in UWP App (Xodo) - Windows 'app'

Post by *risk »

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.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 39935
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Button to open file in UWP App (Xodo)

Post by *ghisler(Author) »

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
User avatar
Dalai
Power Member
Power Member
Posts: 7277
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Button to open file in UWP App (Xodo)

Post by *Dalai »

Windows Apps can be launched by Win32 applications like this:

Code: Select all

"%SystemRoot%\explorer.exe" shell:appsFolder\<Vendor>.<Name_and_ID_of_the_App>!App
The app's name and ID must be determined beforehand, e.g. via PowerShell Get-AppxPackage command.

Example for some random app:

Code: Select all

"%SystemRoot%\explorer.exe" shell:appsFolder\Microsoft.RingDoorbell_8wfdcxeq7xacm!App
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups
Jerez
Junior Member
Junior Member
Posts: 25
Joined: 2003-02-23, 22:40 UTC

Re: Button to open file in UWP App (Xodo)

Post by *Jerez »

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
User avatar
Stefan2
Power Member
Power Member
Posts: 3017
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Button to open file in UWP App (Xodo)

Post by *Stefan2 »

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.



 
 
Jerez
Junior Member
Junior Member
Posts: 25
Joined: 2003-02-23, 22:40 UTC

Re: Button to open file in UWP App (Xodo)

Post by *Jerez »

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
Post Reply