Icon Size Registry Tweak

Page 3 of 3 FirstFirst 123

  1. Posts : 37
    win7 x64
       #21

    reghakr said:
    You have no choice, when you change the size of the icons the grid changes automatically.
    You can manually set the spacing between icons very easily :

    rightclick desktop and go to "Personalization" page>Window color>advanced

    from the dropdown box, you will see :

    spacing between icons (horiz)
    spacing between icon (vert)

    From there you can manipulate the spacing to your liking.
      My Computer


  2. Posts : 17
    Windows 7
       #22

    @EricT
    Thanks for the info

    If've written an Batch script which does the change:

    Code:
    @echo off 
    taskkill /im explorer.exe /f 
    reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Bags\1\Desktop" /v IconSize /t REG_DWORD /d 00000032 /f 
    "%windir%\explorer.exe"
    Strange is, that after a fresh installation and first login with a user the script doesn't works. You've first to logoff and than login again?! Otherwise there are no standard values in the key.

    Would be very happy if someone could write an shell API script
    Last edited by mrquickly; 01 Mar 2010 at 01:10.
      My Computer


  3. Posts : 17
    Windows 7
       #23

    Does andybody know a better way already?
      My Computer


  4. Posts : 2
    Windows 7
       #24

    Hello, I too would love to be able to change the icon size in Windows 7 by the registry or script. Reason: We have over 2000 systems and having the ability to control ever little detail is nice. I still need to look at Group Policy. I have tried everything in this post and nothing works.
      My Computer


  5. Posts : 1
    Windows 7
       #25

    Hello from France.
    Thanks to this post informations, I've writen a little vbs script that autohide the taskbar and set the destop icons to small size.
    How it works?
    The script write an other script called "BarreDesTaches.vbs" in the temporary folder of Windows, add a registry entry in RunOnce to launch it on the next LogOn, and automatically LogOff.
    Hope you enjoy!
    L.

    http://lamemelongueurdonde.com/blog/...eDesTaches.rar
      My Computer


  6. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #26

    Seems OK.

    Here is the code for the script (remember that the author is French):

    Code:
    Option Explicit
    '-------------------------------------------------------------------------------------------
    'Récupération de l'emplacement de Windows
    '-------------------------------------------------------------------------------------------
    Dim oShell
    Set oShell = CreateObject("Wscript.Shell")
    Dim strWinDir
    strWinDir = oShell.ExpandEnvironmentStrings("%SystemRoot%") 
    '-------------------------------------------------------------------------------------------
    'Ecriture du fichier BarreDesTaches.vbs dans le répertoire temporaire
    '-------------------------------------------------------------------------------------------
    Dim objFSO, objTextFile
    Dim strDirectory, strFile, strText
    strDirectory = strWinDir & "\TEMP"
    strFile = "\BarreDesTaches.vbs"
    strText = "const HKCU = &H80000001" _
    & VbCRLf & _
    "dim oWMIReg"_
    & VbCrLf & _
    "set oWMIReg = GetObject(""winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv"")"_
    & VbCrLf & _
    "dim iValueArray()"_
    & VbCrLf & _
    "oWMIReg.GetBinaryValue HKCU, ""Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2"", ""Settings"", iValueArray"_
    & VbCrLf & _
    "iValueArray(8) = 3"_
    & VbCrLf & _
    "oWMIReg.SetBinaryValue HKCU, ""Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2"", ""Settings"", iValueArray"_
    & VbCrLf & _
    "oWMIReg.SetDWORDValue HKCU, ""Software\Microsoft\Windows\Shell\Bags\1\Desktop"", ""IconSize"", 30"
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objTextFile = objFSO.OpenTextFile(strDirectory & strFile, 2, True)
    objTextFile.WriteLine(strText)
    objTextFile.Close
    
    '-------------------------------------------------------------------------------------------
    'Lancement du fichier BarreDesTaches.vbs au prochain LogOn via Runeonce
    '-------------------------------------------------------------------------------------------
    const HKey_LOCAL_MACHINE = &H80000002
    dim oWMIReg
    set oWMIReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv") 
    oWMIReg.SetStringValue HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\RunOnce", "BarreDesTaches", strWinDir&"\Temp\BarreDesTaches.vbs"
    '-------------------------------------------------------------------------------------------
    'LogOff
    '-------------------------------------------------------------------------------------------
    dim objExec
    Set objExec = oShell.Exec("logoff")
    WScript.Quit
      My Computer


  7. Posts : 6
    7 Pro x64 (desktop), 7 Ultimate x86 (laptop)
       #27

    modify script to not hide taskbar?


    This is a nifty script, but I was wondering what lines I would need to delete in order to affect only the desktop icon size (as that is the specific purpose of this thread), leaving the taskbar alone since I already have it configured exactly the way I want, and I definitely do not want it auto-hidden.

    I am comfortable with DOS batch files but have no experience with VB or even WSH, so am not sure how to proceed. Thanks much for any guidance.
    Code:
    Option Explicit
    '-------------------------------------------------------------------------------------------
    'Récupération de l'emplacement de Windows
    '-------------------------------------------------------------------------------------------
    Dim oShell
    Set oShell = CreateObject("Wscript.Shell")
    Dim strWinDir
    strWinDir = oShell.ExpandEnvironmentStrings("%SystemRoot%") 
    '-------------------------------------------------------------------------------------------
    'Ecriture du fichier BarreDesTaches.vbs dans le répertoire temporaire
    '-------------------------------------------------------------------------------------------
    Dim objFSO, objTextFile
    Dim strDirectory, strFile, strText
    strDirectory = strWinDir & "\TEMP"
    strFile = "\BarreDesTaches.vbs"
    strText = "const HKCU = &H80000001" _
    & VbCRLf & _
    "dim oWMIReg"_
    & VbCrLf & _
    "set oWMIReg = GetObject(""winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv"")"_
    & VbCrLf & _
    "dim iValueArray()"_
    & VbCrLf & _
    "oWMIReg.GetBinaryValue HKCU, ""Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2"", ""Settings"", iValueArray"_
    & VbCrLf & _
    "iValueArray(8) = 3"_
    & VbCrLf & _
    "oWMIReg.SetBinaryValue HKCU, ""Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2"", ""Settings"", iValueArray"_
    & VbCrLf & _
    "oWMIReg.SetDWORDValue HKCU, ""Software\Microsoft\Windows\Shell\Bags\1\Desktop"", ""IconSize"", 30"
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objTextFile = objFSO.OpenTextFile(strDirectory & strFile, 2, True)
    objTextFile.WriteLine(strText)
    objTextFile.Close
    
    '-------------------------------------------------------------------------------------------
    'Lancement du fichier BarreDesTaches.vbs au prochain LogOn via Runeonce
    '-------------------------------------------------------------------------------------------
    const HKey_LOCAL_MACHINE = &H80000002
    dim oWMIReg
    set oWMIReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv") 
    oWMIReg.SetStringValue HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\RunOnce", "BarreDesTaches", strWinDir&"\Temp\BarreDesTaches.vbs"
    '-------------------------------------------------------------------------------------------
    'LogOff
    '-------------------------------------------------------------------------------------------
    dim objExec
    Set objExec = oShell.Exec("logoff")
    WScript.Quit
    [/QUOTE]
      My Computer


 
Page 3 of 3 FirstFirst 123

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:55.
Find Us