WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Win8

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Windows 8 Start Desktop

 Keywords:   Show Desktop Start Run ShellExecute Win8 Explorer Shell {3080F90D-D7AD-11D9-BD98-0000947B0257}

Question:

I have a compiled Winbatch exe launched via registry Run key and it launches as expected and does its thing. But it runs in the background on the "desktop" while Windows 8 still displays the Start screen. I have added some code to launch exeplorer.exe and close the Libraries Window that appears when I do so. But I was wondering if there is a way for a compiled Winbatch exe to tell Windows 8 to show the desktop when it launches.

Answer:

There is probably a better way, but you could try putting the following at the beginning of your script
Run( DirWindows(0):"explorer.exe", "shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257}")
This should cause Windows to switch to the desktop.

Have you considered launching the script as a task that runs 'at logon' using the TaskScheduler instead of the registry.


Article ID:   W18445
Filename:   Windows 8 Start Desktop.txt
File Created: 2013:01:31:15:40:44
Last Updated: 2013:01:31:15:40:44