LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute Show Desktop.scf in Labview?

Solved!
Go to solution

Dear all,,

 

 Can anyone tell me how to excute Show Desktop.scf in labview?

 

Regards,

Santhosh

0 Kudos
Message 1 of 9
(2,983 Views)

Hi Santosh,

 

you could use SystemExec to call any external application from LabVIEW...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(2,978 Views)

Thanks,

 

I have allready tried this pallet...Its not  working...

 

Regards,

Santhosh

0 Kudos
Message 3 of 9
(2,976 Views)
Solution
Accepted by topic author Naveen Santhosh

Dear GerdW

 

Finally I did this VI with some method..Let me know if anyother better way is there...I m attaching VI..Look at it...

 

Regards,

Santhosh

Message 4 of 9
(2,968 Views)

Hi Santosh,

 

so you finally took my advice on using SystemExec to call an external application? Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 9
(2,965 Views)

Hi Naveen,

 

I was trying to find right command for this.

CMD /C "C:\Documents and Settings\Username\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"

This is string generated and given to command line input. (In your code)

 

I did not write "/c"..I was trying with following string. Smiley Sad

CMD  "C:\Documents and Settings\Username\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"

 

So close..this was something I enjoy..Try to do something new. Thanks for the solution. Smiley Happy

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 6 of 9
(2,960 Views)

Actually before posting this i have tried with the same pallet..It doesnt work as it will work for other Executables...So i called it from Command line..

 

Regards,

Santhosh

0 Kudos
Message 7 of 9
(2,959 Views)

@Naveen Santhosh wrote:

Actually before posting this i have tried with the same pallet..It doesnt work as it will work for other Executables...So i called it from Command line..

 

Regards,

Santhosh


You could also have used the Windows function "ShellExecute". You wont see a console window with this.

 

Then again... you could run the system exec vi minimized.

0 Kudos
Message 8 of 9
(2,944 Views)

Santhosh,

 

The nudge/wink from Gerd was that he was the one who gave you the answer to your question about using SysExec to execute the command.  So the right thing to do would be to mark his post as the solution to your problem and not your own post.  You can unmark your post as the solution by going to the options menu to the upper right of your message.

0 Kudos
Message 9 of 9
(2,941 Views)