Get the App
SLTechnology News&Howtos  ›  Development  › 

How vbs is used to fix minimizing programs in XP and displaying icons in the taskbar

Shulou Source: shulou.com Published: 2022-06-03 06:43:49 10月02日 Update

This article mainly introduces how vbs can be used to repair the minimization program in XP and display icons in the taskbar. The article is very detailed and has certain reference value. Interested friends must read it!

The code is as follows:

'xp_taskbar_desktop_fixall.vbs-Repairs the Taskbar when minimized programs don't show.

'? Kelly Theriot and Doug Knox-8Compact 22 Compact 2003 Machining Cylon ddf3

'Source: Microsoft Windows XP NewsGroup

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

Message = "this script is used to fix problems in Windows XP where icons cannot be displayed in the taskbar when the program is minimized." & vbCR & vbCR

Message = Message & "in order to work properly, this script will shut down and restart the Windows Explorer shell without damaging your system." & vbCR & vbCR

Message = Message & "Please turn off real-time monitoring of all antivirus software! and save all open files." & vbCR & vbCR

Message = Message & "do you want to continue?"

X = MsgBox (Message, vbYesNo+vbExclamation, "attention")

If X = 6 Then

On Error Resume Next

WshShell.RegDelete "HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ StuckRects2\"

WshShell.RegDelete "HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ StreamsMRU\"

WshShell.RegDelete "HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Explorer\ Streams\ Desktop\"

WshShell.RegDelete "HKCU\ Software\ Microsoft\ Internet Explorer\ Explorer Bars\ {32683183-48a0-441b-a342-7c2a440a9478}\ BarSize"

P1 = "HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ Explorer\"

WshShell.RegWrite p1 & "NoBandCustomize", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoMovingBands", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoCloseDragDropBands", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoSetTaskbar", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoToolbarsOnTaskbar", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoSaveSettings", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoToolbarsOnTaskbar", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoSetTaskbar", 0, "REG_DWORD"

WshShell.RegWrite p1 & "NoActiveDesktop", 0, "REG_DWORD"

WshShell.RegWrite p1 & "ClassicShell", 0, "REG_DWORD"

P1 = "HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Group Policy Objects\ LocalUser\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ Explorer\"

WshShell.RegWrite p1 & "NoCloseDragDropBands", 0, "REG_DWORD"

WshShell.RegDelete p1 & "NoMovingBands"

P1 = "HKLM\ Software\ Microsoft\ Windows NT\ CurrentVersion\ Winlogon\ Shell"

WshShell.RegWrite p1, "explorer.exe", "REG_SZ"

P1 = "HKCU\ Software\ Microsoft\ Internet Explorer\ Explorer Bars\ {32683183-48a0-441b-a342-7c2a440a9478}\"

WshShell.RegDelete p1 & "BarSize"

WshShell.RegWrite p1, "Media Band", "REG_SZ"

On Error Goto 0

For Each Process in GetObject ("winmgmts:"). _

ExecQuery ("select * from Win32_Process where name='explorer.exe'")

Process.terminate (0)

Next

MsgBox "finish! powered by ddf3" & vbcr & vbcr & "? Kelly Theriot and Doug Knox", 4096, "done"

Else

MsgBox "hasn't made any changes to your system." & vbcr & vbcr & "? Kelly Theriot and Doug Knox", 4096, "user cancelled"

End If

The above is all the content of the article "how vbs is used to fix the minimization program in XP and display icons in the taskbar". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Minimum tasks icons programs content articles systems scripts code value interests shells real-time guys buddies files more antivirus software sources users Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Information Huawei Redmi Shulou Technology