LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Create shortcut via program ?

Solved!
Go to solution

Hi 

 

Is it possible to create a  shortcut to my program, when a user clicks on a button ?

I thought to copy and paste a static shortcut but the shortcut target must includes a file that the user specifies.

 

Is there any way of doing this ?

Help share your knowlegde
0 Kudos
Message 1 of 6
(3,912 Views)

I found a solution.

I create a bat fille with the attributes i want.

 

I have another question.

How do i change the icon of the bat that i have created ?

Help share your knowlegde
0 Kudos
Message 2 of 6
(3,899 Views)
You might want to look at the information and examples in this MSDN article.
--
Martin
Certified CVI Developer
0 Kudos
Message 3 of 6
(3,892 Views)

I do not think you can change the icon of a .bat file individually.

.bat files are simple text files with DOS commands in it. No room for icons. 

 

You can change the icons of "all" batch files from Folder Options > File Types

 

Here is a bat-to-exe converter program.

Maybe you can convert your .bat to exe and assign an icon for it.

S. Eren BALCI
IMESTEK
Message 4 of 6
(3,888 Views)

I need it all to be done via my software.

 

Is there a way i can create my own extension which is a duplicate of the .bat extension ?

Help share your knowlegde
0 Kudos
Message 5 of 6
(3,880 Views)
Solution
Accepted by Shako

I found the real why to do it.

By creating a Shell Link Using Win32 API.

Message Edited by Shako on 04-09-2010 01:13 PM
Help share your knowlegde
0 Kudos
Message 6 of 6
(3,779 Views)