Change The Default Action for script files
| Operating System |
Windows 95 Onward |
| Category |
System |
| Sub-Category |
Scripts |
This tweak will Allow you to change the default action that is triggered by windows when script file is double clicked. Script file is a executable file which contains command in text form. Some time these files could contain malicious commands which are hazardous to the system, and if file with malicious is executed it might crash operating system.
By default when we double click a script file it executes but by applying this tweak we will change default action edit, which will open the file in notepad and give us chance to view the content of the file.
There are various type of script with various file extension, classification is done on the basis of what programming language is used to script that file. Below given is an enumeration of various file extension.
| File Extension |
Description |
| .JS |
JScript Script File |
| .JSE |
JScript Encoded Script File |
| .VBS |
VBScript Script File |
| .VBE |
VBScript Encoded Script File |
| .WSH |
Windows Script File |
| .WSF |
Windows Script Host Settings File |
Steps to Apply this tweak
-
Open Registry
- According To File Extension We Need to Go TO different location
| Extension |
Location |
| .JS |
HKEY_CLASSES_ROOT\JSFile\Shell |
| .JSE |
HKEY_CLASSES_ROOT\JSEFile\Shell |
| .VBE |
HKEY_CLASSES_ROOT\VBEFile\Shell |
| .VBS |
HKEY_CLASSES_ROOT\VBSFile\Shell |
| .WSH |
HKEY_CLASSES_ROOT\WSHFile\Shell |
| .WSF |
HKEY_CLASSES_ROOT\WSFFile\Shell |
| |
|
- Change Value "default" to "Edit"
- Restart computer Your Computer for changes to take effect
Back |