分享你我的心得.
共乘一片美好网络.

win7文件任意排列功能(对任意文件夹有效)

今天同事说win7任意排列图标,我还真没注意到,资源管理器的自动排列文件或文件夹功能,操作起来很不习惯,无论怎么拽文件或文件夹,它们的位置却丝毫不动,无法手动排列。如对一些文件名称进行修改后,准备操作下一个时,它们却自动进行排列了,位置发生了变化,让人好找呀!在以前在Vista/xp系统中,只需取消对“自动排列”菜单项的勾选就ok了。可是在Win7下的右健“查看”菜单下,却没有了该菜单项,无法设置(桌面右键菜单中却有哦),让人很郁闷(如图1)。所以就搜索了大量的文章,找到了最终简单而方便的办法直接导入注册表或是执行文件即可。前期还有做的准备工作等。

 
如何才能让Win7实现任意文件的随意拖拽排放呢?我们可以在记事本里输入一段注册表代码,保存为“.reg”文件,然后双击运行它添加到系统注册表中,重启电脑后就会发现资源管理器右键菜单的“查看”菜单下多了“自动排列”和“对齐到网格”两个菜单项,使用它们就可方便控制文件和文件夹的排列了。取消对它们的勾选,这下就可以随便拖放文件或文件夹位置,进行任意排列了,文件排序随便你怎么拖都可以了(如图2)。


如果经常使用“中等图标”查看文件和文件夹,那就将查看方式修改为“中等图标”,取消对右键菜单的“查看”菜单下“自动排列”和“对齐到网格”项的勾选,再点击“工具/文件夹选项”,打开“文件夹选项”对话框,切换到“查看”选项卡下,点击“应用到文件夹”按钮,这样设置后,就可让所有的文件和文件夹在任何查看模式下,浏览时实现随意排列位置的功能了(如图3)。

如果使用WIN7系统的朋友们也遇到这样的问题,对此很纠结的话,也使用这一方法,让资源管理器的文件或文件夹图标可随意排列吧!

小提示:如果在某些文件夹下无法实现文件或文件夹图标可随意排列,只需在空白处右键点击,取消“查看”菜单下“自动排列”和“对齐到网格”项的勾选即可。

将下面代码存为.vbs执行即可(这是找回平铺的方法)

const HKEY_CURRENT_USER = &H80000001
strComputer = “.”
Set objWMIService = GetObject(“winmgmts:” _
& “{impersonationLevel=impersonate}!\\” & strComputer & “\root\cimv2”)
Set colProcessList = objWMIService.ExecQuery _
(“Select * from Win32_Process Where Name = ‘explorer.exe'”)
For Each objProcess in colProcessList
objProcess.Terminate()
Next
Set objRegistry=GetObject(“winmgmts:{impersonationLevel=impersonate}!\\” &_
strComputer & “\root\default:StdRegProv”)
strKeyPath1 = “Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags”
strKeyPath2 = “Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU”
strKeyPath3 = “SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults”
DeleteSubkeys HKEY_CURRENT_USER, strKeypath1
DeleteSubkeys HKEY_CURRENT_USER, strKeypath2
DeleteSubkeys HKEY_CURRENT_USER, strKeypath3
Sub DeleteSubkeys(HKEY_CURRENT_USER, strKeyPath)
objRegistry.EnumKey HKEY_CURRENT_USER, strKeyPath, arrSubkeys
If IsArray(arrSubkeys) Then
For Each strSubkey In arrSubkeys
DeleteSubkeys HKEY_CURRENT_USER, strKeyPath & “\” & strSubkey
Next
End If
objRegistry.DeleteKey HKEY_CURRENT_USER, strKeyPath
End Sub

 

最快捷最有效的还是注册表文件

讲下面代码存为.reg执行即可

Windows Registry Editor Version 5.00
;http://www.xiaoyebailong.com
[-HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
“FullRowSelect”=dword:00000000
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell]
“KnownFolderDerivedFolderType”=”{57807898-8C4F-4462-BB63-71042380B109}”
“SniffedFolderType”=”Generic”
;Generic – Folder Template
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}]
“Rev”=dword:00000000
“FFlags”=dword:43000001
“Vid”=”{137E7700-3573-11CF-AE69-08002B2E1262}”
“Mode”=dword:00000004
“LogicalViewMode”=dword:00000001
“IconSize”=dword:00000010
“ColInfo”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,10,\
00,00,00,00,00,00,00,00,00,00,00,04,00,00,00,18,00,00,00,30,f1,25,b7,ef,47,\
1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,10,01,00,00,30,f1,25,b7,ef,47,1a,\
10,a5,f1,02,60,8c,9e,eb,ac,0e,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,\
a5,f1,02,60,8c,9e,eb,ac,04,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,\
f1,02,60,8c,9e,eb,ac,0c,00,00,00,50,00,00,00
“Sort”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,30,f1,\
25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,01,00,00,00
“GroupView”=dword:00000000
“GroupByKey:FMTID”=”{00000000-0000-0000-0000-000000000000}”
“GroupByKey:PID”=dword:00000000
“GroupByDirection”=dword:00000001
;Documents – Folder Template
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{7d49d726-3c21-4f05-99aa-fdc2c9474656}]
“Rev”=dword:00000000
“Vid”=”{137E7700-3573-11CF-AE69-08002B2E1262}”
“Mode”=dword:00000004
“LogicalViewMode”=dword:00000001
“IconSize”=dword:00000010
“ColInfo”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,10,\
00,00,00,00,00,00,00,00,00,00,00,04,00,00,00,18,00,00,00,30,f1,25,b7,ef,47,\
1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,10,01,00,00,30,f1,25,b7,ef,47,1a,\
10,a5,f1,02,60,8c,9e,eb,ac,0e,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,\
a5,f1,02,60,8c,9e,eb,ac,04,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,\
f1,02,60,8c,9e,eb,ac,0c,00,00,00,50,00,00,00
“Sort”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,30,f1,\
25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,01,00,00,00
“GroupView”=dword:00000000
“GroupByKey:FMTID”=”{00000000-0000-0000-0000-000000000000}”
“GroupByKey:PID”=dword:00000000
“GroupByDirection”=dword:00000001
“FFlags”=dword:43000001
;Music – Folder Template
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{94d6ddcc-4a68-4175-a374-bd584a510b78}]
“Rev”=dword:00000000
“Vid”=”{137E7700-3573-11CF-AE69-08002B2E1262}”
“Mode”=dword:00000004
“LogicalViewMode”=dword:00000001
“IconSize”=dword:00000010
“ColInfo”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,10,\
00,00,00,00,00,00,00,00,00,00,00,04,00,00,00,18,00,00,00,30,f1,25,b7,ef,47,\
1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,10,01,00,00,30,f1,25,b7,ef,47,1a,\
10,a5,f1,02,60,8c,9e,eb,ac,0e,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,\
a5,f1,02,60,8c,9e,eb,ac,04,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,\
f1,02,60,8c,9e,eb,ac,0c,00,00,00,50,00,00,00
“Sort”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,30,f1,\
25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,01,00,00,00
“GroupView”=dword:00000000
“GroupByKey:FMTID”=”{00000000-0000-0000-0000-000000000000}”
“GroupByKey:PID”=dword:00000000
“GroupByDirection”=dword:00000001
“FFlags”=dword:43000001
;Pictures – Folder Template
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{b3690e58-e961-423b-b687-386ebfd83239}]
“Rev”=dword:00000000
“Vid”=”{137E7700-3573-11CF-AE69-08002B2E1262}”
“Mode”=dword:00000004
“LogicalViewMode”=dword:00000001
“IconSize”=dword:00000010
“ColInfo”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,10,\
00,00,00,00,00,00,00,00,00,00,00,04,00,00,00,18,00,00,00,30,f1,25,b7,ef,47,\
1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,10,01,00,00,30,f1,25,b7,ef,47,1a,\
10,a5,f1,02,60,8c,9e,eb,ac,0e,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,\
a5,f1,02,60,8c,9e,eb,ac,04,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,\
f1,02,60,8c,9e,eb,ac,0c,00,00,00,50,00,00,00
“Sort”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,30,f1,\
25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,01,00,00,00
“GroupView”=dword:00000000
“GroupByKey:FMTID”=”{00000000-0000-0000-0000-000000000000}”
“GroupByKey:PID”=dword:00000000
“GroupByDirection”=dword:00000001
“FFlags”=dword:43000001
;Videos – Folder Template
[HKEY_CURRENT_USER\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\AllFolders\Shell\{5fa96407-7e77-483c-ac93-691d05850de8}]
“Rev”=dword:00000000
“Vid”=”{137E7700-3573-11CF-AE69-08002B2E1262}”
“Mode”=dword:00000004
“LogicalViewMode”=dword:00000001
“IconSize”=dword:00000010
“ColInfo”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,fd,df,df,fd,10,\
00,00,00,00,00,00,00,00,00,00,00,04,00,00,00,18,00,00,00,30,f1,25,b7,ef,47,\
1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,10,01,00,00,30,f1,25,b7,ef,47,1a,\
10,a5,f1,02,60,8c,9e,eb,ac,0e,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,\
a5,f1,02,60,8c,9e,eb,ac,04,00,00,00,78,00,00,00,30,f1,25,b7,ef,47,1a,10,a5,\
f1,02,60,8c,9e,eb,ac,0c,00,00,00,50,00,00,00
“Sort”=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,30,f1,\
25,b7,ef,47,1a,10,a5,f1,02,60,8c,9e,eb,ac,0a,00,00,00,01,00,00,00
“GroupView”=dword:00000000
“GroupByKey:FMTID”=”{00000000-0000-0000-0000-000000000000}”
“GroupByKey:PID”=dword:00000000
“GroupByDirection”=dword:00000001
“FFlags”=dword:43000001

赞(0)
未经允许不得转载:小叶白龙博客 » win7文件任意排列功能(对任意文件夹有效)
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!