ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

call ToggleDesktop.scf

you can toggle the desctop (close all windows),
the script for that is:
********************
[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
********************************
the file (e.g. ToggleDesktop) has the extension
".scf" (works not on plain NT4.0 or on win95)

Now my question, how can I give the command
ToggleDesktop?

I found a way, but I wonder, if there is a better
way. I put the command "call ToggleDesctop.scf"
in batchfile, without this trick I was not able
to start the script with "System Exec.vi".
Do you have an idea? Best regards, Stefan Pofahl
0 Kudos
Message 1 of 2
(4,590 Views)

Hi,

Wire the following to the command line input of the System Exec VI:

cmd /C "c:\i386\show desktop.scf"

NOTE: The scf file and path will be different in your case.

Regards,

Khalid


0 Kudos
Message 2 of 2
(4,590 Views)