Pages

Home: SPTricks

Sunday, July 4, 2010

Directly Hide/Show File Extension Shortcut On Your Desktop

Hide/Show File Extension Shortcut

Dear Friends I am Going to Write About "How to  Make Show/Hide File Extension Shortcut On Your Desktop"............



Step 1:  Simply Copy The Following Code.....




FileExt = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt"
Set Sh = WScript.CreateObject("WScript.Shell")
St = Sh.RegRead(FileExt)
If St = 1 Then
Sh.RegWrite FileExt, 0, "REG_DWORD"
Else
Sh.RegWrite FileExt, 1, "REG_DWORD"
End If
Sh.SendKeys("{F5}")

Step 2: Open Notepd

Step 3: Peast Code Here

Step 4: Save The File On Your Desktop Location With The Name "Show_Extension_SP.vbs".

Done...............And..............Enjoy.