"Use drop shadows for icon labels on desktop".

  • Thread starter Thread starter Thompson
  • Start date Start date
T

Thompson

Can you set the "drop shadows" programatically within a VBScript or perhaps
with a registry key?

I am looking for ways to set this - I have seen SystemParametersInfo but I
can't find out how to do this in WSH
 
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced

'Script Code

'Change the X = line to 0 to turn it off, 1 to turn it on.
X = 0
Set WSHShell = WScript.CreateObject("WScript.Shell")
WSHShell.RegWrite "HKCU\\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ListviewShadow", _
X, "REG_DWORD"
SET WSHShell = Nothing

'End Script code

The user must log off/logon, or terminate and restart the Explorer.exe process for the change to take, via a script. This can be done via the script by adding the following to the scrpt after the SET WSHShell = NOTHING command

For Each Process in GetObject("winmgmts:"). _
ExecQuery ("select * from Win32_Process where name='explorer.exe'")
Process.terminate(0)
Next
 
Back
Top