Jump to content

Suggestion please for a command


Recommended Posts

I have readed that Win7 x64 stored settings of folder view into this parts of registry.
There's some change to change through script folder view of active window using
these registry ?

[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellNoRoamBagMRU]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellNoRoamBags]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellBagMRU]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellBags]

Link to comment
Share on other sites

It was a play on words...

Water is "the man" when it comes to com programming.

When he or someone else that knows what they are doing shows up they may have a different solution for you. :shifty:

Link to comment
Share on other sites

I'm sorry but I have never automated the Windows Explorer.

But I think a good starting point might be this >thread.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Moderators

I used to do this for XP machines with the script below. Never tried it on WIN7, but the keys may be close enough for you to get the info you need. It does require a logoff.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>


Local $msg, $key1, $key2, $val1, $val2, $type

$key1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams"
$key2 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults"
$val1 = "Settings"
$val2 = "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
$type = "REG_BINARY"

GUICreate("Change Folder View", 300, 160)
$combo = GUICtrlCreateCombo("Choose Folder View", 10, 50, 280, 40)
GUICtrlSetData($combo, "Thumbnails|Tiles|Icons|List|Details", "Choose Folder View")

$go = GUICtrlCreateButton("Execute", 100, 100, 100, 40)
GUISetState(@SW_SHOW)

    While 1
        $msg = GUIGetMsg()
            Select
                Case $msg = $GUI_EVENT_CLOSE
                    ExitLoop
                Case $msg = $go
                    Select
                        Case GUICtrlRead($combo) = "List"
                                RegWrite($key1, $val1, $type, "0x080000000300000000000000E0A51F0E7335CF11AE6908002B2E1262040000000600000043000000")
                                RegWrite($key2, $val2, $type, "0x1C000000030000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Details"
                                RegWrite($key1, $val1, $type, "0x08000000040000000000000000777E137335CF11AE6908002B2E1262040000000100000043000000")
                                RegWrite($key2, $val2, $type, "0x1C000000040000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Tiles"
                                RegWrite($key1, $val1, $type, "0x080000000600000000000000E525F165E17B1048BA9DD271C8432CE3040000000400000043000000")
                                RegWrite($key2, $val2, $type, "0x1C000000060000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Content"
                        Case GUICtrlRead($combo) = "Thumbnails"
                            RegWrite($key1, $val1, $type, "0x08000000050000000000000090B2EB8BD052D011B7F400C04FD706EC040000000300000043000000")
                            RegWrite($key2, $val2, $type, "0x1C000000050000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Icons"
                            RegWrite($key1, $val1, $type, "0x080000000100000000000000E0D057007335CF11AE6908002B2E1262040000000500000043000000")
                            RegWrite($key2, $val2, $type, "0x1C000000010000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                    EndSelect
            EndSelect
    WEnd

GUIDelete()

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

As I mentioned, that script is for XP. You would have to go the those registry locations and find out what the binary values are, as they will obviously be different.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...