It is currently February 4th, 2023, 3:21 am

Open a file with a non default app

Get help with creating, editing & fixing problems with skins
Abanar
Posts: 1
Joined: January 24th, 2023, 4:12 pm

Open a file with a non default app

Post by Abanar »

I want to use Rainmeter to create an icon that will open a PDF file with an app that is not my default pdf editor. Basically, I want rainmeter to perform Window's "Open With" function.

Is this possible? IF so, how?
User avatar
balala
Rainmeter Sage
Posts: 14935
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Open a file with a non default app

Post by balala »

Abanar wrote: January 24th, 2023, 4:17 pm I want to use Rainmeter to create an icon that will open a PDF file with an app that is not my default pdf editor. Basically, I want rainmeter to perform Window's "Open With" function.
Add the path of the program you want to use to open the file as first parameter and the file you have to open as second parameter of the LeftMouseUpAction option. For instance: LeftMouseUpAction=["C:\Program Files\Path\Program.exe" "d:\DocumentToOpen.pdf"]