Showing posts with label Registry. Show all posts
Showing posts with label Registry. Show all posts

Shortcut to Show/Hide Hidden Files

Geek Tutor , ,












This tutorial will teach how to create a shortcut to show or hide hidden files on your computer. It's a simple visual basic script that will take effect immediatly after double-clicking on it. It's a fast way to show or hide your hidden files instead of navigating to control panel > folder options and choose to show or hide the files.

1- Open Notepad
2- Copy and paste the following code into notepad

Set sh = CreateObject("WScript.Shell")
theKey = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden"
setHidden = sh.RegRead(theKey)
If setHidden = 1 Then
setHidden = 0
MsgBox "System and hidden files will no longer appear in Explorer.",64,"Hidden File Exchange"
Else
setHidden = 1
MsgBox "System and hidden files will appear in Explorer.",64,"Hidden File Exchange"
End If
sh.RegWrite theKey,setHidden,"REG_DWORD"
Set sh = Nothing

3- Save it as anything.vbs (you can name it any name you choose as long as you don't include spaces and the extension must be .vbs (In the Save as type panel choose All Files, this is a very important step so the script is saved as vbs)
4- This works only on Vista/Seven when User Account Control (UAC) is disabled because it needs access to the registry.

How To Use It
Just double-click on the script, if you are showing your hidden files they will become hidden and vice versa. You should notice the change without restarting windows all you have to do if you noticed a delay is pressing F5 on your keyboard to refresh.

Download a ready-to-use hiddenfiles.vbs by clicking Here
Read more ...

Block/Allow Internet Access For An Application

Geek Tutor ,












Sometime it is necessary to block internet access from a certain application due to the use of a crack or patch or a serial number that can be blacklisted if the program was updated. This tutorial will teach you how to block internet access by adding a rule to the host file

1- Open Notepad
2- Copy & paste the following into notepad

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\exefile\shell]
[HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access]
[HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access\command]
@="netsh advfirewall firewall add rule name=\"%1\" dir=out action=block program=\"%1\""
[HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access]
[HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access\command]
@="netsh advfirewall firewall delete rule name=\"%1\""

3- Save it as Install.reg

4- Open Notepad again
5- Copy & paste the following into notepad

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\exefile\shell\Block Internet Access]
[-HKEY_CLASSES_ROOT\exefile\shell\Allow Internet Access]

6- Save it as Uninstall.reg
7- Now you have 2 files Install.reg & Uninstall.reg

Install.reg
Is used to integrate 2 options into right-click context explorer menu, the 2 options are Allow Internet Access & Block Internet Access. Double-click on Install.reg then click Yes to integrate them.

Uninstall.reg
Is used to uninstall the previously mentioned context explorer menu options. Double-click on Uninstall.reg then click Yes to remove integration.

How To Use It:
From now on, when you need to block internet access from an application just right-click on it and choose Block Internet Access. To allow internet access right-click on the application and choose Allow Internet Access

Note: When you want to uninstall the integration from the context explorer menu make sure that you allowed internet access for all application if previously you blocked it.

If you are having any problem creating the 2 files download Install.reg Here and Uninstall.reg Here
Read more ...
 
Copyright 2010 Geek Tutor