Open Source: Spoiler using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Threading.Tasks; using System.Windows.Forms; namespace ExitExplorer { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { ExitExplorer(); } static void ExitExplorer() { IntPtr hWndTray = FindWindow("Shell_TrayWnd", null); PostMessage(hWndTray, 0x5B4, IntPtr.Zero, IntPtr.Zero); } [DllImport("user32.dll", SetLastError = true)] public static extern IntPtr FindWindow(string WindowsClass, string WindowTitle); [return: MarshalAs(UnmanagedType.Bool)] [DllImport("user32.dll", SetLastError = true)] static extern bool PostMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam); } } You are welcome. P.S. you can remove unused usings. They left from WindowsFormApplication1
hb860 Never mind about making RestartExplorer.exe, i downloaded Rexplorer.exe . Download: sordum.org/8098/some-small-tools/
hb860 Thank you very much, more choice is always better . Update: I have tested RestartExplorer.exe on windows 8.1 with update, and RestartExplorer.exe, closes desktop and just opens This PC folder, is this right ? Update 2: hb860 has fixed RestartExplorer.exe .
hb860, both ExitExplorer and RestartExplorer are very useful. Thank you! As always, Winaero tools help me again!
Ace2, NO NO NO It is NOT a fix. The real fix is compiler flags. It was set in my VS to prefer x86 code over the platform, so it tried to launch x86 Explorer in your x64 OS FIXED. Just recompiled it as is with the proper flags (the site you mentioned has no that flag enabled). You can re-download the file - fixed.
It is better to use Code: System.Threading.Thread.Sleep(5000); System.Diagnostics.Process.Start("explorer.exe"); Sometimes that "exit" takes time. So, 5 secs delay is good enough for this simple app. The right way is to get the ID of the explorer.exe instance which had created the taskbar and wait till it will finish.
I'm rapidly converting the batch scripting I have to powershell as its more useful to have. At the moment I have a hybrid between batch and powershell. The Problem with powershell is that its pretty limited. I'll chime in again after I finish installing my desktop onto the ssd.
Now that... I'll add to my list of tweaks OK now that we have the explorer restart. Do you think there would be a way to restart winlogon.exe gracefully lol Also I noticed when I restarted explorer the explorer.exe lagged a bit before restarting. Also the shell32.dll images that represent the various file types is slow on loading. We need a way to kick start it so that it has all the stuff ready to go on the restart. That will mean when explorer.exe restarts we have all the shell32 parts up n running.
You just double click it. I put in an auto-elevate powershell line (thx s1ave77). Do some searching yourself on the network monitoring software. We're not your darn pre-school teacher. Sorry man, sometimes the adults have to get some work done. It can't all be mindless babble. I will re-iterate that we aren't entirely sure if the "criminal key logger" thing is disabled by this. It still needs testing, and a lot of us are busy with patch day.
I didn't ask for your help, but if you wanna give it a shot, you can get the telemetry disable script and a network monitoring program and go around sleuthing. Who knows? You might be the one to stumble upon the mythical keylogger.
Then don't expect someone else to have "hours to be doing research" on your behalf. Either roll up your sleeves and read or don't expect to be spoonfed everything. Your time is NOT more valuable than another random person's. The world revolves around the sun, not an individual...
I see the difference - you are an **** of the 1st degree - I would not plan on being around here much longer if I were you.