Windows 8 and 8.1 Forums

Programmatic Windiows Explorer stop and restart

  1. #1

    Posts : 1
    Windows Xp 8

    Programmatic Windiows Explorer stop and restart


    My question is how to properly restart Windows Explorer from a program I wrote.

    I wrote a program that run as Desktop with Windows 8.
    After the program is started, it automatically Quit Explorer.exe (finding the PID and quitting/close)
    and all is fine. Before my program will be quitted by the user, I want to restart the
    Explorer.exe. It works but I get error message when trying to use the restarted
    Explorer with APP in the Metro/modern UI.

    From what I understand, reason is that my program is running as administrator and
    when re-launching Explorer.exe also Explorer.exe is runned as administrator and this
    do not allow Metro APPs to be used.

    I observed that when restarting Explorer.exe using my program it get the BUILTIN/ADMINISTRATORS
    as OWNER, while if restarting within the task manager it is as DENY.

    Is there any way to tell Explorer.exe to run as BUILTIN/ADMINISTRATORS DENY and overcome the issue?

    Thanks for the attention and hints.

      My System SpecsSystem Spec

  2. #2

    I don't know of a simple way of doing this.
    While are you killing the explorer.exe process at all?
    Normally it would be highly inappropriate for a program to do this.
      My System SpecsSystem Spec

Programmatic Windiows Explorer stop and restart
Related Threads
I am running Win 8.1 Enterprise, recently repair refreshed. When I am cleaning up my desktop and internal files, I frequently (+80% of the time) cannot move a file or folder from one directory to another without getting and error message saying that it cannot be moved because it is open in another...
Hi guys, I've got this strange problem after I performed chkdsk and system restore. I followed Kari's guide in relocating default users folder to another drive during installation of the OS. With this being said, I think the non-default location of my users folder and program data is causing my...
I have the Classic Start button installed and I have it set up to bypass the Start Screen and disable the corner hotkeys. I don't use the APPs, but occasionally I go to the Start Screen to remove some new installation tiles. Since I have the start corner hotkeys disabled, I have to go into...
i've restarted a couple times. my only option is to change the shortcut each time i restart windows 8. i have 8 custom shortcuts for ableton song files. when i first made them they worked like a charm. once i restarted my computer they completely stopped. but if you open up the shortcut...
I have a Klip Extreme Multimedia Keyboard: KKM-101E. My my keyboard used to work fine until about a week ago the multimedia buttons will stop working whenever I restart/shutdown my computer. I have to unplug and plug back in the USB cable for it to work properly. I have tried to deleting...
@ hi roomies, I'm trying to format this new HDD that I just bought for $20.00 in a Flea Market. Can some one help me please? I'm using window 8 pro and here are some pictures. Thank You. 16484
Stop auto-restart in Windows Updates & Activation
Today my Windows 8 pc restarted automatically while i installed some programs and it was a very annoying time. I think it was Windows Update there caused the restart, but I'm not sure. How do i solve this, so my work isn't spilled another time?
Eight Forums Android App Eight Forums IOS App Follow us on Facebook