How to show/hide hidden files with a vb script

by admin on June 16, 2009

Use this link to view in higher quality http://youtube.com/watch?v=IeDFo_SBfDQ&fmt=18

How to turn hidden files on and off with a vb script good if u have rocket dock or any docklet program just make a shortcut to it drag and drop it on ur dock and there you go.

VB Script:

Option Explicit
Dim dblHiddenData, strHiddenKey, strSuperHiddenKey, strFileExtKey
Dim strKey, WshShell
On Error Resume Next

strKey = “HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced”
strHiddenKey = strKey & “\Hidden”
strSuperHiddenKey = strKey & “\ShowSuperHidden”
strFileExtKey = strKey & “\HideFileExt”

Set WshShell = WScript.CreateObject(”WScript.Shell”)
dblHiddenData = WshShell.RegRead(strHiddenKey)

If dblHiddenData = 2 Then
WshShell.RegWrite strHiddenKey, 1, “REG_DWORD”
WshShell.RegWrite strSuperHiddenKey, 1, “REG_DWORD”
WshShell.RegWrite strFileExtKey, 0, “REG_DWORD”
WScript.Echo “Showing Hidden Files ”

Else
WshShell.RegWrite strHiddenKey, 2, “REG_DWORD”
WshShell.RegWrite strSuperHiddenKey, 0, “REG_DWORD”
WshShell.RegWrite strFileExtKey, 1, “REG_DWORD”
WScript.Echo “Hidding Files ”

End If

Duration : 0:3:18


Technorati Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

{ 25 comments… read them below or add one }

goblinhk June 16, 2009 at 11:28 pm

but nvm i have …
but nvm i have found way to get in those folders

goblinhk June 16, 2009 at 11:28 pm

I want to put my …
I want to put my own models music etc in game

Megaloth13 June 16, 2009 at 11:28 pm

use the normal …
use the normal method, go into folder options and select show hidden files and folders, why do you need access to them anyway?

goblinhk June 16, 2009 at 11:28 pm

who knows how to …
who knows how to access Serious Sam II hidden files this isnt working on this game SS2 have hidden fles wich i need!

vbsripter June 16, 2009 at 11:28 pm

i have xp
i have xp

vbsripter June 16, 2009 at 11:28 pm

ITS NOT WORKIN. ANy …
ITS NOT WORKIN. ANy reasons to why?

Twiz9491 June 16, 2009 at 11:28 pm

no it should work …
no it should work on every folder\drive it just changes the settings in ur folder options its the same as changing it manually in your computer

thepowerof9b June 16, 2009 at 11:28 pm

Ye but this is only …
Ye but this is only working on the desktop right? cuz my hidden files in my C:/ is alwas hidden…

Twiz9491 June 16, 2009 at 11:28 pm

what do you mean?
what do you mean?

tokoy2x June 16, 2009 at 11:28 pm

how to show hidden …
how to show hidden file? becouse i “Apply changes to this folder,subfolders and files” all the file in the folder is gone..i cant show the hidden file..need some help…

Twiz9491 June 16, 2009 at 11:28 pm

did you refresh …
did you refresh your desktop of window? and are you on xp or vista cuz i have vista i havent tried it in xp

thepowerof9b June 16, 2009 at 11:28 pm

I have the same …
I have the same problem, is says hiding files: nothing happens, then when I do it again it says showing hidden files but still no differens

1981z28camaro June 16, 2009 at 11:28 pm

haha thats funny, I …
haha thats funny, I also had the same wallpaper as you have one just the other day!

XGLSuperbounce June 16, 2009 at 11:28 pm

nice vid but not …
nice vid but not what im lookin for

if any1 knows how to keep running a process but close the program and it still works and you can open up later and its still running then please tell me i need to know

Twiz9491 June 16, 2009 at 11:28 pm

u shure?
u shure?

8136009 June 16, 2009 at 11:28 pm

hey i paste ur …
hey i paste ur code in note pad and make vbs
it just ask me showing files
and hiding files
but it do not show or hide my files hope u reply

Twiz9491 June 16, 2009 at 11:28 pm

Yea PF iS tha …
Yea PF iS tha :D ~!*TWIZ*!~

Paddoman05 June 16, 2009 at 11:28 pm

Pink Floyd lover I …
Pink Floyd lover I see ^^ Dude I love PF! Nice vid! 5 stars!! Keep up the good work ;)

EdwardoOwns June 16, 2009 at 11:28 pm

great video 5 stars …
great video 5 stars, keep making more :D

Twiz9491 June 16, 2009 at 11:28 pm

when it is clicked …
when it is clicked on it turns on and off your hidden files in windows so instead of having to go to control then folder options every time u want to turn hidden files on and off all u have to do is click on the script or click on a short cut to the script

bassethoundnmattedo June 16, 2009 at 11:28 pm

what exactly it do …
what exactly it do plz pm me

bassethoundnmattedo June 16, 2009 at 11:28 pm

hi quality is fmt …
hi quality is fmt 18 or mp4 sick man

ScrewdriverGuru June 16, 2009 at 11:28 pm

No problem , it is …
No problem , it is really nice :DD

Twiz9491 June 16, 2009 at 11:28 pm

Thankz dude finally …
Thankz dude finally some 1 comments lol :D

ScrewdriverGuru June 16, 2009 at 11:28 pm

Great video , 5 …
Great video , 5 stars man

Leave a Comment

Previous post: Make Money Using PayPal Online Earn $500 Daily for FREE Work at Home Jobs Internet Business Video

Next post: Final Draft FD8-CASE Final Draft 8.0 Screenwriting Software for Mac and Windows