Jump to content
Sign in to follow this  
Evgenych

Update explorer's "behaviour" from script

Recommended Posts

In my script I want to set explorer's property "show full path in adress string" (when it isn't set) by executing

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState","FullPathAddress","REG_DWORD",1)

But explorer's behaviour doesn't change and when I execute Run("explorer d:\path") in adress string remain only folder name.

How can I update explorer properties?

Share this post


Link to post
Share on other sites

It may be the case that you are not changing the correct registry key.

What I usually do in these situations is use RegMon from Sysinternals. This monitoring tool lets you see all Registry activity in real-time.

So what I do is this:

1) Open Explorer and get to the dialog box that I want to change.

2) Start RegMon. If a lot of keys are being accessed, I will close those programs and/or set a filter.

3) Go back to Explorer and make the change.

4) Go back to RegMon and see which registry keys were changed.

Hope this helps!

-John

Share this post


Link to post
Share on other sites

I'm sorry.

All works fine.

:(

<{POST_SNAPBACK}>

Let me guess....you re-started explorer, or re-started the computer?

When you twark with the registry, sometimes you'll have to restart the program in question after tinkering, or close it out before tinkering to get the desired results.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

I find out that's the problem.

FullPathAddress - changes immediately, when value is edited via regedit or script (you can see changes after pressing F5)

FullPath (affect on caption) - I can change it only via Folder Properties-View-Show full path in caption AND pressing OK (Apply). In such a case value HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState\Settings

changes also.

For my current script FullPathAddress - is pretty enough (I use window text to identify different folders)

p.s. sorry for bad English :(

It may be the case that you are not changing the correct registry key

Definitly not. I use Advanced Registry Tracer Edited by Evgenych

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...