LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execution of shortcuts with System Exec?

Is it possible to execute a shortcut (typical named "Shortcut to nnnn") with System Exec.vi?
0 Kudos
Message 1 of 2
(2,686 Views)
No it isn't because shortcuts are not executable. Shortcuts are files which can be interpreted by the windows explorer.

You can run a shortcut via the shell execute function. Attached is a VI which will call this function. In "Dateiname" you have to supply the filename with extension. In "Verzeichnis" you have to supply the folder where the file is. You can set the verb to "open" which will run the application and "print" which will cause the application to print the file if it can. "Rückgabe" is the return from the shell execute function.
You can use each file extension to start the registered application for the file. If you give a file with the name Test.vi you will start LabVIEW in the same way you will start it like you have double clicked th
e file in the explorer.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 2
(2,686 Views)