Jump to content
Sign in to follow this  
MariusN

explorer.exe opens My Documents"

Recommended Posts

MariusN

I have a small script that first kills explorer.exe, then activate it again. Prob is, it starts explorer, but My Documents immediately opens up as well after running the script. Maybe a small help here please folks?

Here is the script --->

If ProcessExists("explorer.exe") Then
  Do
   ProcessClose("explorer.exe")
  Until ProcessExists("explorer.exe") = 0
  Sleep(1000)
  Run("explorer.exe")
EndIf

I have also tried this with "Shellexecute"...tia

Edited by MariusN

Share this post


Link to post
Share on other sites
MariusN

No problem...i managed to use taskkill and it works ;)

Share this post


Link to post
Share on other sites
MariusN

...matter of interest...Why is it that when i use ---> ProcessClose("explorer.exe") followed by Run("explorer.exe") that "My Documents" pops-up, but when i use taskkill instead of ProcessClose, everything works fine...a bug maybe?

...tia

Share this post


Link to post
Share on other sites
SandelPerieanu

Try this

Run("Explorer.exe ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.