Reboot EXPLORER

Just starting out? Need help? Post your questions and find answers here.
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Reboot EXPLORER

Post by Thunder93 »

I don't see how anything above PPid procedure is of relevance in that code. :wink:

KCC can't use that code for what he currently wants to-do. He needs to have explorer shell exited until several tasks is performed. That method bounces explorer right-back immediately! :mrgreen:

The restart manager method, is the ideal thing for what he wants to accomplish here. Nothing else will suffice. 8)
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5502
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Reboot EXPLORER

Post by Kwai chang caine »

I not understand..i have try the two codes (Thunder and Rashad) and no effect with W7 :shock:
My explorer is perhaps affraid :lol:
ImageThe happiness is a road...
Not a destination
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Reboot EXPLORER

Post by Thunder93 »

Well from what you said previously, the code properly exits out of Windows Shell? Just not starting it back up? Have you tried the latest update that was made to my previous code?

I'm running Windows 10 x64, works perfectly here with PB 5.42 stable x64. Later I'll try with PB x86.

It should work on Vista and newer.


Edit: Just tested with PB 5.42 stable x86, working fine. All works in both Ascii and Unicode modes.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5502
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Reboot EXPLORER

Post by Kwai chang caine »

Incredible..me i try with v5.40 x86 on a W7 x64, it's perhaps that ..
I search why that not works....

Thanks for your numerous different try 8)
ImageThe happiness is a road...
Not a destination
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Reboot EXPLORER

Post by Thunder93 »

I've updated the codes, includes small changes. I don't know if it'll suffice to have it start explorer shell back up for you.

I find it odd that you experiencing problems. Is there still an error message with your previous test?

I lowered the delay? Perhaps you didn't give it enough time to start back up?

FinishExplorerRestart() procedure. Does it produce an debug message "RmRestart error: *"?

Might be best to retrieve the error message with GetLastError_() after RmRestart() command and see what it shows.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5502
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Reboot EXPLORER

Post by Kwai chang caine »

Thanks a lot, i test that tommorow, and say the result, i'm on my smartphone now
Have a good night and again thanks
ImageThe happiness is a road...
Not a destination
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Reboot EXPLORER

Post by Thunder93 »

I've dusted off my Windows 7 machine, and started it up. I did observe a problem, which I think is what you've experienced. It has been addressed, and should work good now. :lol:
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5502
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Reboot EXPLORER

Post by Kwai chang caine »

Yeeeeahhh !!!! you are really an angel
Using your old pc just for me.... :shock:

When i get home behind a pc i test that.

At the begining, i think it's simple to do my "personal modifier of windows", but finally i see all windows not have the same behavior, or the same registry key, etc...

Furthermore some options like, make visible on the desktop shortcut system like "workplace" (poste de travail or Ordinateur in french" are not so easy ...

Sometime i use the cmd not the bdr, for choose my theme for exampler, and that works very well.

Again thanks for all the time you lost for me 8)
ImageThe happiness is a road...
Not a destination
User avatar
blueb
Addict
Addict
Posts: 1118
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Reboot EXPLORER

Post by blueb »

Kwai chang caine wrote: ...
For that, even if the friends is virtal, all the time i was young, INTERNET not exist, and i have dreamed to have so much friend alone in my bedroom
I feel the same way KCC... but I make sure not to dream of them when I am alone in my bedroom. :mrgreen: :mrgreen:
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Reboot EXPLORER

Post by Thunder93 »

For all the Windows customizations that you've mentioned, It should be very easy thing to implement into your utility. For Vista+, lot of the registry tweaks should be compatible with also Windows 7 and newer.

At some point I'm thinking about doing something similar but for a technician tool. This and because time spent is educational, this wouldn't fall under time lost. Don't give it anymore thoughts, I enjoy helping you and others when time permits.

I've received some valuable help on here in the past, and I feel kindness should be rewarded.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5502
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Reboot EXPLORER

Post by Kwai chang caine »

You know...kcc have remove the word "easy" of his language since a long time...
In fact it's sometime easy for several members of this forum, but even open the IDE it's nearly a miracle for kcc :lol:

In fact, it's possible with all the forum for only one kcc
But easy...It's not the first word who come to me when i think programming :mrgreen:

I have even not searched if this style of tools exist.
In fact it's the pleasure to create it.
It's sure, for a professional that can be very usefull.
Always do the same setup on numerous machine that not be cool.

It's even strange, Microsoft not thinking to a style of file of parameter in XML or other.
When you want you save all your setup, and when you have a problem...hop a clic and the thousand of parameter come in one time

in all case, again thanks for your precious help

@Blueb
Ok ok, me too it's not the only one things i dream alone in my bedroom when i was young
But at this time, they are numerous more x doc of women against informatic doc.

In fact...when you see internet. ..i'm not sure that have really changed :mrgreen:
But kcc know why !!!! The women are always very complicated to understand :lol:
And there is never too much doc for "use it" correctly :lol:
ImageThe happiness is a road...
Not a destination
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Reboot EXPLORER

Post by Thunder93 »

Wasn't thinking about same setup on numerous machines. There is moments when person like to upgrade or do fresh install. Taking a snapshot of the various Windows customization and then restoring can be beneficial thing.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5502
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Reboot EXPLORER

Post by Kwai chang caine »

Yes, that can be usefull too :wink:

I have tested your last code and it works great this time 8)
You have well do to use your old W7 PC :lol:

A little thing strange sometime, i have a white and black bar below the screen, near the taskBar, but not always :shock:
And impossible to redraw the wallpaper....and after a time, she disapears...
Again thanks for your precious and big help

Have a good night 8)
ImageThe happiness is a road...
Not a destination
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Reboot EXPLORER

Post by Thunder93 »

Thanks for the update. That is good to see. I will try to reproduce the anomaly.

Apparently Windows 10 handles bad coding better. :P
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
Post Reply