LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to (programmatically?) change the name of the taskbar button for an executable

Solved!
Go to solution

Hi there,

I am using LabVIEW 2010SP1. I noticed that the taskbar button name of an executable is always its file name (i.e. if I have defined "abc.exe" as target filename in the Information category of the application properties, the name of the corresponding taskbar button is "abc". Is there a way to modify this taskbar button name (programmatically, by setting an application property or by adding an entry in "abc.ini")?

 

Best regards

 

cpschnuffel

0 Kudos
Message 1 of 14
(4,959 Views)

cpschnuffel,

Im not sure what exactly you refer to by Taskbar button,

Could you attach your code or an image?

 

Regards

Prashanth N
National Instruments
0 Kudos
Message 2 of 14
(4,958 Views)

Hi Prashanth,

If I build an executable from my LabVIEW code and start this executable, it has a button in the taskbar (like every non-hidden executable). The name of this taskbar button is always the name of the executable (without ".exe"). My goal is to change the name of this taskbar button (i.e. my executable is "abc.exe", but the name of the corresponding taskbar button should be "abc 1.00" or whatever...).

 

See the attached image: The executable "EAMi.exe" (its panel is running in foreground) has the taskbar button named "EAMi".

0 Kudos
Message 3 of 14
(4,954 Views)

Sorry Andrey, but this affects only the title of my window and NOT the name of my executable's taskbar button; please have a look at my window title in the attached image of my last post: It is already different to the name of my VI...

 

cpschnuffel

0 Kudos
Message 5 of 14
(4,945 Views)

A workaround would be to change the name of your exe to whatever you want, and control the Title as shown above.

 

Is there a reason you dont want to change your exe name?

Prashanth N
National Instruments
0 Kudos
Message 6 of 14
(4,937 Views)

@Pachi wrote:

A workaround would be to change the name of your exe to whatever you want, and control the Title as shown above.

 

Is there a reason you dont want to change your exe name?


No any "workarounds" are necessary. The Title on TaskBar should be the same as title of the Top-Level VI.

untitled.png

 

Code:

 

snippet.png

 

It might be differ only if VI called dynamically. 

 

Andrey.

 

0 Kudos
Message 7 of 14
(4,931 Views)

Hello all,

 

to show the problem, I made a VI and an EXE from this (LV2010SP1)

 

 

 

 

Greets, Dave
Download All
0 Kudos
Message 8 of 14
(4,929 Views)

Hi Prashanth,

yes, there's a reason for me: "abc 1.00.exe" doesn't look very professional... Besides it would be a great feature to change the name of the taskbar button programmatically, e.g. to show additional informations like a star (*) if the currently used file is changed but not saved, or a progress value if I do a long measurement scan etc.

 

Best regards,

 

cpschnuffel

0 Kudos
Message 9 of 14
(4,923 Views)

I believe the information that you are looking to change is embedded within the application's VERSIONINFO resource. I don't know how to programmatically change this, but I know there are resource hackers that can do this. I do not know if they use a Windows API function to do this, or whether they simply change the file at a hex level.

0 Kudos
Message 10 of 14
(4,900 Views)