Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: explorer.exe spawns 'libraries' when restarted

23 Apr 2017   #1
metalhammer

Windows 7 Ultimate x64
 
 
explorer.exe spawns 'libraries' when restarted

Hi guys, I'm new here so, before starting my first post, I'll take my chance to say hi to everyone !

I'll try now as well to quickly describe my issue:

I'm running Windows 7 ultimate in Kiosk mode (no explorer.exe, no taskbar, just apps) and so far, so good.
... I'm doing this since the PC needs to go into a cabinet for a custom app where Windows need to be hidden.

Anyway, whenever I close an application/window (I use a batch file and few scripts to switch from an app to the next), explorer.exe is restarted (just the process, not the task bar) but, worse thing, whenever this happens, a 'Libraries' windows pops up taking focus

Couple of questions then to you knowledgeable guys

- why if I kill explorer.exe it doesn't stay dead ?
- why on earth, whenever this process is restarted it throws out a 'Libraries' window ?

I already have a spare place in my wall of fame for whoever helps me fixing this

Thanks a lot and have a great evening


My System SpecsSystem Spec
.
24 Apr 2017   #2
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by metalhammer View Post
Hi guys, I'm new here so, before starting my first post, I'll take my chance to say hi to everyone !
Hi Metalhammer! Welcome to SevenForums.

I feel that the problem lies in your batch program. You havenít provided this so I can only answer your questions.

Quote   Quote: Originally Posted by metalhammer View Post
- why if I kill explorer.exe it doesn't stay dead ?
When the Explorer process is killed Windows will detect this and attempt to restart it. Try running tskill explorer. It will close Explorer and Windows will immediately restart it. Interestingly, if you use the taskkill command with the /f switch to kill Explorer, Explorer wonít be relaunched. Iíve also noticed that if you run two tskills in quick succession (tskill explorer & tskill explorer), Explorer will stay closed.

Quote   Quote: Originally Posted by metalhammer View Post
- why on earth, whenever this process is restarted it throws out a 'Libraries' window ?
If Explorer is already running and you attempt to launch explorer.exe again, an Explorer window will open.

Youíll need to identify what is launching explorer.exe more times than required. I would guess this would have something to do with the logic of your batch program.
My System SpecsSystem Spec
24 Apr 2017   #3
metalhammer

Windows 7 Ultimate x64
 
 

Hi Pyprohly,

really appreciated your help here
... I tried looking everywhere but didn not find any useful tip

First thing first, I did more tests in the past few days and I found one interesting clue:

- explorer.exe is restarted when I close (taskkill) my front end (my1st_app.exe in the excerpt below)

so one question is why closing an app causes the system to restart explorer.exe ?

Here's my 'raw' batch file flow (minor details removed):

Code:
echo Closing front end
echo ...
taskkill.exe /IM my1st_app.exe
timeout 4
echo FE terminated succesfully
echo ################################
echo Initiating graphics driver change
echo ...
DriverChange.exe %1
echo Refresh Rate correctly set
echo ################################
echo Wainting for driver restart
echo ...
timeout 4
echo ################################
echo Starting 2ndApp
echo ...
my2nd_app.exe %1
echo ################################
echo Restarting 1stApp.
echo ...
start "My1stApp" /b my1st_app.exe
exit
The timeouts you see are needed to prevent race conditions coming from video driver restart.

So the problem seems to stem from 3rd line where my1st_app is closed: after closure explorer is restarted and 'libraries' pops up, the most annoying thing

Thanks
My System SpecsSystem Spec
.

24 Apr 2017   #4
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by metalhammer View Post
- explorer.exe is restarted when I close (taskkill) my front end (my1st_app.exe in the excerpt below)

so one question is why closing an app causes the system to restart explorer.exe ?
So you have verified this is the only app causing this problem?

If itís an isolated problem with the app, this might not be something we can easily assist you with without taking a closer look at the app.
My System SpecsSystem Spec
25 Apr 2017   #5
metalhammer

Windows 7 Ultimate x64
 
 

Tbh I didn't verify this is the only app behaving like this

... anyway, 2nd app doesn't spawn anything when closing so probably you're right

I'll need to talk to the developers and check with them if the code calls something on closure which could lead to the explorer process respawn.

I'll keep you posted if I'll be able to make any progress

Cheers
My System SpecsSystem Spec
25 Apr 2017   #6
metalhammer

Windows 7 Ultimate x64
 
 

Developers just confirmed the application restarts explorer.exe on exit, should this process not be running

Thanks man for the help, it looks we found why it didn't stay dead

Cheers
My System SpecsSystem Spec
Reply

 explorer.exe spawns 'libraries' when restarted




Thread Tools




Similar help and support threads
Thread Forum
Windows Explorer restarted by Restart Manager on logon
Hello. I've just booted my machine, and after logging in heard the default sound that gets played when the computer is shut down. Obviously this isn't normal, so I checked the Event Viewer and found the following events. Starting session 1 - ‎2012‎-‎06‎-‎03T09:12:20.323285600Z. Shutting...
General Discussion
Explorer crashed, restarted computer, cant run system repait
last night I was doing reserach for a school project. I went to windows explorer and it went all white, saying it was not responding. I powered of then powered back on my computer, and it reccomended that I run system repair. I tried to run it, but it gets to the screen and just shoes a cursor and...
Backup and Restore
Win Explorer Libraries: Pointers disappeared
The Libraries/Pictures used to have shortcuts/pointers to where all of my JPGs, etc actually were on the C: drive. That way since new computer delivered in January and Win 7 Pro 64-bit initialized and I migrated my JPGs from an XP computer. Somehow, for about a week now, the only pointers to...
Performance & Maintenance
running bat file spawns multiple command prompts
I am running a mvn batch file under windows 7 and within the batch file another batch file is being called. This causes a new command prompt to be spawned and to immediately disappear with execution finishes. The problem is the 2nd window is displaying errors that I cannot read before the...
General Discussion
Explorer.exe blocked when restarted
Hi, I recently installed Windows 7 Ultimate on my friends System and it was properly activated and updated. I had installed nod 32 anti virus on his system with the trail log in, which was working just good for the first few hours, before he had to remove it and add Avira's trial one. ...
BSOD Help and Support


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 13:11.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App