Page 1 of 2

Open Excel file

Posted: April 7th, 2017, 12:21 pm
by trader-hawk
Hello,

I have the "Avengers Skin" and the Widget "Time-24Hour.ini".

MeterFolder7]
meter=button
buttonimage=folder launchers.png
x=511
y=238
ButtonCommand=!Execute ["#FLP7#"]
antialias=1

With FLP7, I wear the path of a program that I would like to open. This also works.
How do I open an Excel file?

Re: Open Excel file

Posted: April 7th, 2017, 12:47 pm
by fonpaolo
I hope to have understood your question...
To open an Excel file, you need Microsoft Excel or OpenOffice (to give you an alternative), once you've one of these programs installed, simply use the program shortcut in the launcher path.

You can also use directly the Excel file and add this path in the launcher, in this case, Windows will do his job, to open it with the registered program to open the file.

Re: Open Excel file

Posted: April 7th, 2017, 12:55 pm
by trader-hawk
Yes, you understood me correctly. Excel I have installed.

ButtonCommand=!Execute ["C:\Users\bla-bla\Documents\bla\bla-bla\Indizes Übersichtsliste.xlsx"]

With this string it does not open it.

Re: Open Excel file

Posted: April 7th, 2017, 1:06 pm
by fonpaolo
Probably it's because you're using a file in the Documents folder, I can assure you that it works.

Just out of curiosity, what version of the "Avengers S.H.I.E.L.D." suite you're using?

Re: Open Excel file

Posted: April 7th, 2017, 1:12 pm
by kyriakos876
trader-hawk wrote:Yes, you understood me correctly. Excel I have installed.

ButtonCommand=!Execute ["C:\Users\bla-bla\Documents\bla\bla-bla\Indizes Übersichtsliste.xlsx"]

With this string it does not open it.
Maybe delete the !Execute and make it ButtonCommand=["C:\Users\bla-bla\Documents\bla\bla-bla\Indizes Übersichtsliste.xlsx"]

Re: Open Excel file

Posted: April 7th, 2017, 1:12 pm
by jsmorley
You are going to want to be sure the .xlx file extension is associated with Excel in Windows. You also don't need !Execute even though it won't really hurt.

https://docs.rainmeter.net/manual/bangs/#Execute

Re: Open Excel file

Posted: April 7th, 2017, 1:15 pm
by trader-hawk
I have "Shielt-Complete 1.0". I use it but not as a skin, but only have this widget in use.
Also without "Execute" it does not work.

Re: Open Excel file

Posted: April 7th, 2017, 1:17 pm
by jsmorley
trader-hawk wrote:I have "Shielt-Complete 1.0". I use it but not as a skin, but only have this widget in use.
Also without "Execute" it does not work.
!Execute is simply not a factor. It is entirely deprecated in Rainmeter, and has been for several years.

https://docs.rainmeter.net/manual/bangs/#Deprecated
https://docs.rainmeter.net/history/#r1377

So while often older (pre-2012) skins will have !Execute in them, i.e.

LeftMouseUpAction=!Execute ["Blah.exe"]

That can and should be replaced by simply

LeftMouseUpAction=["Blah.exe"]

Nothing to worry about particularly, it will work either way, but as you see them in older skins you are working on, and certainly when creating new skins, you should not use !Execute.

Re: Open Excel file

Posted: April 7th, 2017, 1:24 pm
by trader-hawk
In order to exclude other errors I have it saved directly to C.
ButtonCommand=["C:\Indizes_Übersichtsliste.xlsx"]
Does not work too.

Re: Open Excel file

Posted: April 7th, 2017, 1:29 pm
by jsmorley
trader-hawk wrote:In order to exclude other errors I have it saved directly to C.
ButtonCommand=["C:\Indizes_Übersichtsliste.xlsx"]
Does not work too.
Modern versions of Windows are not at all happy about having "files" in the root of the system drive, only "folders". But in any case, just for fun, can you try that without the umlaut Ü character just be be sure we don't have some Unicode or Locale issue?