Jump to content

Custom folder view set correctly as default except for the recycle bin


Recommended Posts

Posted (edited)

Another difficult problem lol.

In my old unattended Xp cd I've managed to set my custom folder view from the registry using regshot.

All directories now show details and order files by name as default (plus other visualization settings).

It all worked good (tested a long) except for.. the recycle bin! :blink:

I'd like it to be the only dir that orders items by "deletion date", but, unfortunately, I can't change it permanently after my tweaks.

When opened, the bin shows files in an apparent random order. I've discovered that it simply arranges them by name like all the other folders, but its elements have an encoded name not corresponding to the real one (like dg100, dg120, ecc).

Maybe you can help me set the bin to the correct default behaviour?

This is my batch file:

rem ##bag,bagmru
rem ##reset folders view
reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /f
reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /f

rem ##set a customized view for all folders
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /v "0" /d 14001F6040F05F6481501B109F0800AA002F954E0000 /t REG_BINARY /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /v "MRUListEx" /d 00000000FFFFFFFF /t REG_BINARY /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU" /v "NodeSlots" /d 02 /t REG_BINARY /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU\0" /v "MRUListEx" /d FFFFFFFF /t REG_BINARY /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\BagMRU\0" /v "NodeSlot" /d 00000001 /t REG_DWORD /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell" /v "Col" /d 4294967295 /t REG_DWORD /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell" /v "ColInfo" /d 00000000000000000000000
000000000FDDFDFFD0F0008003000100040006400000000000300000004000000020000000100000005000000060000
0007000000B7009F005E00550050005D005700780000000000010000000200000003000000040000000500000006000
0000A000000FFFFFFFF000000000000000000000000000000000000000000000000000000000000000000000000 /t REG_BINARY /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell" /v "Mode" /d 00000004 /t REG_DWORD /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell" /v "ScrollPos800x600(1).x" /d 00000000 /t REG_DWORD /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell" /v "ScrollPos800x600(1).y" /d 00000000 /t REG_DWORD /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell" /v "Sort" /d 00000000 /t REG_DWORD /f
reg add "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell" /v "SortDir" /d 00000001 /t REG_DWORD /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams" /v "Settings" /d 08000000040000000000
000000777E137335CF11AE6908002B2E1262040000000A00000043000000 /t REG_BINARY /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults" /v "{645FF040-5081-101B-9F08-00AA002F954E}" /d 1C00000004000000000000000000B8000000000001000000FFFFFFFFF0F0F0F014000300B80000000000000030000000FDDF
DFFD0F00080030001000400064000000000003000000040000000200000001000000050000000600000007000000B7009F00
5E00550050005D0057007800000000000100000002000000030000000400000005000000060000000A000000FFFFFFFF0000
00000000000000000000000000000000000000000000000000000000000000000000 /t REG_BINARY /f

p.s: yes I know, big undocumented binaries suck

Edited by phaolo

Posted (edited)

Uh! My previous registry attemps weren't wrong!

I've discovered that the bin doesn't memorize the order ONLY for the column "date deleted"!

So my questions now change:

-in your windows, can you manage to sort by "date deleted" as default for the bin? (mine resets after each opening)

-is it possible to set that order from the registry?

Thanks

Edited by phaolo
Posted

In another forum an expert told me that sorting the recicle bin with date deletion order is not possible from the registry :(

Nothing more to do on the subject then.

Lol what a lone thread anyway XD

Posted

Here is what I got after doing "whatchanged"...

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags\1014\Shell]

"Sort"=dword:00000002

"SortDir"=dword:ffffffff

Did you regshot it after logoff and in again?

Its user setting registry which is normally saved when user logoff (otherwise its cached) unless you enable the "disable save user setting on exit" policy which always cached only.

Anyway it works for me but i doubt i'll works for you... I mean the "1014" seems not persistent.

More..

Sort's data represent the ordinal position of the columns where my win as name, original location, date deleted, size, type and date modified started from 0.

Anyway I don't know whats the arragement after windows initial setup.

SortDir'data here mean its not sorting folder, which only may true when Sort's data are Name, type or Date modified.

Give it a try

Posted (edited)

Uh, do you mean you managed to sort the bin by "date delete" as default? Mine resets after each opening (for that view type).

I think that number 1014 depends on how many folders-views the system has memorized (it could be any integer below max). It should have another entry in BagMRU too. I doubt I can use yours otherwise.

In other posts, then, I read that "Mode" should set file view (icons, list, details, etc.), "Sort" the order (by name, type, size, etc..) and "SortDir" the ascending-descending mode. Interesting what you discovered about Sort, but I don't know how to point to the bin :\

I didn't use regmon after logoff, I took a shot at view reset and another after set; then I've simply modified the wanted HKEY_USERS entries to HKEY_CURRENT_USER. Seems to work (except for the above dir).

p.s: I know that the code "{645FF040-5081-101B-9F08-00AA002F954E}" is related to the bin, but has no visible effect for "date deleted" order..

Edited by phaolo
Posted
Uh, do you mean you managed to sort the bin by "date delete" as default? Mine resets after each opening (for that view type).

yup, logout and in or restart still sorted as date deleted.

anyway you right about 1014, I've just try in other comp, and didn't have same value :}

Posted

:blink: reg delete "HKCU\Software\Microsoft\Windows\ShellNoRoam\Bags" /f

What is the purpose?

As I know there is some special case where column entries (name, type, size...so on) are differently allocated in some folder, such recycle bin, windir\fonts, windir\Offline Web Pages and other. as you wont found "date deleted" or "font name" column entries in normal folder..

And after comparing the difference of 1014 (in my other comp as 343) with most other other bags. it differ in ColInfo which should look like this:

"ColInfo"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,0f,\

00,06,00,28,00,10,00,34,00,50,00,00,00,00,00,01,00,00,00,02,00,00,00,03,00,\

00,00,04,00,00,00,05,00,00,00,b4,00,b4,00,78,00,60,00,78,00,78,00,00,00,00,\

00,01,00,00,00,02,00,00,00,03,00,00,00,04,00,00,00,05,00,00,00,ff,ff,ff,ff,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00

Don't know what it mean :wacko:

Posted (edited)

Maybe I managed to do it!

Now the bin remembers its view, except the first time i open it (but this is less annoying than every time).

Have to test more.

I'll post an example to show what I've discovered till now (not 100% sure of course):

------------------------------------------------------------------------------------------------

; max number of folder views to remember

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam]

"BagMRU Size"=dword:000000c8

------------------------------------------------------------------------------------------------

; this contains info for each folder view

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU]

; specify how many folders view are memorized. Each "02" is an entry

"NodeSlots"=hex:02 02 02

; each 8 digits point to next strings. Increases backwards like this ffffffff,00000000,01000000,02000000,etc..

"MRUListEx"=hex:00,00,00,00,01,00,00,00,02,00,00,00,ff,ff,ff,ff

; The first integer points to subkey numbers. If you look inside the binary you can read part of the folder name.

"0"=hex:14,00,1f,60,40,f0,5f,64,81,50,1b,10,9f,08,00,aa,00,2f,95,4e,00,00

"1"=hex:14,00,1f,48,ba,8f,0d,45,25,ad,d0,11,98,a8,08,00,36,1b,11,03,00,00

"2"=hex:14,00,1f,60,40,f0,5f,64,81,50,1b,10,9f,08,00,aa,00,2f,95,4e,00,00

------------------------------------------------------------------------------------------------

; key number corresponding to a folder. Each entry gets subkeys for subdirectories views

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU\0]

; works like bagmru mrulistex string and depends on subkeys

"MRUListEx"=hex:ff,ff,ff,ff

; eventual numbered strings for subkeys

; this is a folder counter (increases by 1 in each folder or subfolder created). Points to Bags keys

"NodeSlot"=dword:00000001

------------------------------------------------------------------------------------------------

; same as above (example)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU\1]

"MRUListEx"=hex:ff,ff,ff,ff

"NodeSlot"=dword:00000002

------------------------------------------------------------------------------------------------

; same as above (example)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU\2]

"MRUListEx"=hex:ff,ff,ff,ff

"NodeSlot"=dword:00000003

------------------------------------------------------------------------------------------------

; these are pointed by nodeslot strings in bagmru subkeys

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags\1\Shell]

; show toolbars

"Buttons"=dword:ffffffff

"Links"=dword:00000000

"Address"=dword:ffffffff

; choose auto-arrange, align-to-grid, none, ecc (means file flags?)

"FFlags"=dword:00000000

; special folders like "documents" have this string

"FolderType"="foldername"

; assign hotkey? dunno

"HotKey"=dword:00000000

; this changes file view type (icon, list, details, etc..). Why two strings?

"Vid"="{137E7700-3573-11CF-AE69-08002B2E1262}"

"Mode"=dword:00000004

; the scroll position.. but it's not memorized anyway

"ScrollPos1024x768(1).x"=dword:00000000

"ScrollPos1024x768(1).y"=dword:00000000

; changes if window opens maximized

"ShowCmd"=dword:00000001

; ascending-descending order (sortdirection!)

"SortDir"=dword:ffffffff

; these indicate what column number is used for sorting. Again, why two strings?

"Sort"=dword:00000002

"Col"=dword:00000002

; contains column width, column shown, and probably other data

"ColInfo"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,0f,\

00,08,00,30,00,10,00,40,00,64,00,00,00,00,00,03,00,00,00,04,00,00,00,02,00,\

00,00,01,00,00,00,05,00,00,00,06,00,00,00,07,00,00,00,eb,00,cb,00,78,00,60,\

00,78,00,69,00,69,00,79,00,00,00,00,00,01,00,00,00,02,00,00,00,03,00,00,00,\

04,00,00,00,05,00,00,00,06,00,00,00,0a,00,00,00,ff,ff,ff,ff,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00

; unknown for now

"Rev"=dword:00000002

"WFlags"=dword:00000000

; folder window position and size restrictions

"WinPos1024x768(1).left"=dword:0000006e

"WinPos1024x768(1).top"=dword:0000006e

"WinPos1024x768(1).right"=dword:0000038e

"WinPos1024x768(1).bottom"=dword:000002c6

"MinPos1024x768(1).x"=dword:ffffffff

"MinPos1024x768(1).y"=dword:ffffffff

"MaxPos1024x768(1).x"=dword:ffffffff

"MaxPos1024x768(1).y"=dword:ffffffff

------------------------------------------------------------------------------------------------

; same as above (example)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags\2\Shell]

------------------------------------------------------------------------------------------------

; same as above (example)

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\Bags\3\Shell]

------------------------------------------------------------------------------------------------

Edited by phaolo
Posted (edited)

; these are pretty empty but follow the same shellnoroam structure

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell]

"BagMRU Size"=dword:000000c8

------------------------------------------------------------------------------------------------

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU]

"NodeSlots"=hex:02

"MRUListEx"=hex:ff,ff,ff,ff

"0"=hex:14,00,1f,60,40,f0,5f,64,81,50,1b,10,9f,08,00,aa,00,2f,95,4e,00,00

------------------------------------------------------------------------------------------------

[HKEY_CURRENT_USER\Software\Microsoft\Windows\ShellNoRoam\BagMRU\0]

"MRUListEx"=hex:ff,ff,ff,ff

"NodeSlot"=dword:00000001

------------------------------------------------------------------------------------------------

; some of the usual folder keys

[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop]

"Mode"=dword:00000001

"ScrollPos1024x768(1).x"=dword:00000000

"ScrollPos1024x768(1).y"=dword:00000000

"Sort"=dword:00000000

"SortDir"=dword:00000001

"Col"=dword:ffffffff

"ColInfo"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,0f,\

00,04,00,20,00,10,00,00,00,28,00,00,00,00,00,01,00,00,00,02,00,00,00,03,00,\

00,00,b4,00,60,00,78,00,78,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

"ItemPos1024x768(1)"=hex:BIGBINARY

------------------------------------------------------------------------------------------------

; streams is a mystery, but has been created after setting a default view for all directories:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams]

; settings for what exactly?

"Settings"=hex:08,00,00,00,04,00,00,00,00,00,00,00,00,77,7e,13,73,35,cf,11,ae,\

69,08,00,2b,2e,12,62,04,00,00,00,02,00,00,00,43,00,00,00

; default info for all. Maybe the {number} indicates a code belonging to the folder from which you set the view

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults]

"{F3364BA0-65B9-11CE-A9BA-00AA004AE837}"=hex:1c,00,00,00,04,00,00,00,00,00,02,\

00,00,00,a4,00,00,00,00,00,01,00,00,00,ff,ff,ff,ff,f0,f0,f0,f0,14,00,03,00,\

a4,00,00,00,00,00,00,00,30,00,00,00,fd,df,df,fd,0f,00,06,00,28,00,10,00,34,\

00,50,00,00,00,00,00,01,00,00,00,02,00,00,00,03,00,00,00,04,00,00,00,05,00,\

00,00,f2,00,4d,00,7a,00,65,00,6b,00,65,00,00,00,00,00,01,00,00,00,02,00,00,\

00,03,00,00,00,04,00,00,00,08,00,00,00,ff,ff,ff,ff,00,00,00,00,00,00,00,00,\

00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

00,00,00

------------------------------------------------------------------------------------------------

; desktop settings

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]

; big settings for two simple toolbars..

"TaskbarWinXP"=hex: VERYBIGBINARY

"Toolbars"=hex:11,00,00,00,00,00,00,00

; upgrade?

"Upgrade"=dword:00000001

------------------------------------------------------------------------------------------------

Edited by phaolo
Posted (edited)

Thank you GrofLuigi, but unfortunately I couldn't make that method work as I wanted. (you, tumagonx?)

My method instead seems to work good (default folder view + custom folder changes), but the bin has still a weird behaviour... :realmad:

Now it remembers all views, but sorting by the special columns "date deleted" and "original location" is screwed.

I wonder if it's a bug..

What do you think Tumagonx, did you have better luck? Do you want to exchange settings? (you'll have to reset all views, then set the defaults and finally export the changed keys)

Edited by phaolo
Posted

Sorry, since no one help in my thread i leave this forum for a long time...

OK, just to make sure... have you enable "remember folder setting" that i said earlier? just in case...

BTW i have reset and set recycle bin sort to "date deleted", it turn out that (all pc that i try) use bagMRU/1/nodeslot as pointer to recycle bin's bag... What about yours? if it same then...

assuming you have a backup of bag that set the recycle bin correctly (aka sort=2), just change bagMRU/1/nodeslot to point that bag...

I use number >50 since most my unattended experiment spend about 30bags after install (note: I didn't reset / cleanup bags during setup)

Unless you didn't want enable "remember folder setting" you may need to set system with "deny" permission to related keys. which i don't how to achieve this with cmd.

Posted (edited)

Yes, the option "remember folder setting" is enabled.

I know I can change directory views from Bag: it works for every folder except for the bin if I try to sort by the special columns.

In your test the bin points to 1 as it's simply the first opened directory.

--------

I don't know if your attempts are exactly similar to mine.

Did you do this?

1- reset all folders (or delete the keys)

2- set a default view from "My computer" with "Apply to all folders" (without touching anything else)

3- reboot

4- change only recycle bin view to show order by date deleted inverted

5- export keys to save current configuration (optional)

6- try if bin works correctly (needs testing with more files, at first glance appears good even if it's not)

Again, if you want I can give you my reg files to see, but you have to first do a backup of yours (anyway a reset fixes all)

-----------

Look an example of the weird order I get.

They are all normal files and not folders (yes, I know, late hours XD)

post-130686-1232716898_thumb.png

Edited by phaolo
Posted (edited)

Ok, it doesn't work even with manual setup via "apply to all folders".

It MUST be a bug (or the expert was simply right and this cannot be done).

Edited by phaolo

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
  • Recently Browsing   0 members

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