How to hide the taskbar in vbs

Updated July 20, 2017

VBScript, commonly abbreviated as VBS, is a scripting language used on the Microsoft Windows platform. VBS coders create scripts that can perform small tasks within the Windows operating system. VB scripts are used to do things like automatically open specific applications upon starting up the computer. You can hide the Windows taskbar using a premade VB script and executing it through the "Run" application.

Click "Start" and then click "Programs." Click "Accessories" and then choose "Notepad" in the program list.

Type or copy and paste the following code into a text file:

Sub Taskbar(blnValue As Boolean)

End Sub

Private Sub Cmdhide_Click()

Dim A As Boolean

A = False

Taskbar (A)

End Sub

Private Sub Cmdunhide_Click()

Dim A As Boolean

A = True

Taskbar (A)

End Sub

Select "File" and then choose "Save As." Type a name for your file and then click the "File Type" drop-down menu. Select ".VBS" from the available list. Click the "Save" button.

Click "Start" and then click "Run." Type "CMD" and then press the "Enter" button. Type "Cscript" followed by the name of the .VBS file. Windows will run the script

and the taskbar will automatically hide itself.

Cite this Article A tool to create a citation to reference this article Cite this Article

About the Author

Keith Patrick has been writing online since 2008. His articles appear on and various other websites. He is currently studying journalism and e-commerce at DePaul University in Chicago.