Command Line Scripting

  • Thread starter Thread starter STEVE CHAN
  • Start date Start date
S

STEVE CHAN

Hi Guys,

I wanted to know if there was a way to do the following things via the
command line:

unlock taskbar
ungroup similar taskbar buttons
show quick launch
uncheck "Hide inactive icons"

Thanks,

Steve
 
Those setting can be chage in the registry.

you could create a REG file that is called by a CMD.

Create a REG file woth those info: Call it...let say taskbar.reg

;----- ungroup similar taskbar buttons
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"TaskbarGlomming"=dword:00000001

; ----- unlock taskbar
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"TaskbarSizeMove"=dword:00000001

; ----uncheck "Hide inactive icons"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer]
"EnableAutoTray"=dword:00000000




Then in a CMD, call this regedit /s taskbar.reg

I have never found a way to enable quick launch.....


REgards

JP
 
The following VB script will enable the QL.


Option Explicit

Dim oShell

Set oShell=WScript.CreateObject("WScript.Shell")

oShell.Run("rundll32.exe shell32.dll,Options_RunDLL 1")
WScript.Sleep 100
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.SendKeys "%Q"
WScript.Sleep 200
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.Sendkeys"%A"
WScript.Sleep 100
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.Sendkeys"{ENTER}"
 
Hawkens said:
The following VB script will enable the QL.


Option Explicit

Dim oShell

Set oShell=WScript.CreateObject("WScript.Shell")

oShell.Run("rundll32.exe shell32.dll,Options_RunDLL 1")
WScript.Sleep 100
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.SendKeys "%Q"
WScript.Sleep 200
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.Sendkeys"%A"
WScript.Sleep 100
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.Sendkeys"{ENTER}"

Sweet!
Much better than my AutoIt script during an unattended I found a while back.
I should have thought about that - oh well..
THANKS!
 
Back
Top