Open .WSH files with Notepad.
This setting enables you to open a file with extension .WSH in Notepad and have a look at it before getting it executed.
Level: Recommended For Experts Only
Description:
Script files may contain malicious script commands that attempt to perform unwanted actions on your computer. Though its a powerful mechanism to automate certain tasks, its also a common source of security threat. The better option is to take a look at the script files before executing them. To avoid security violations, you can make the script files to open with notepad on a double click instead of executing the script. For this, go to start > run menu, enter regedit and navigate to the registry path listed below. Now, right-click and modify the default string value to edit. Then, create the subkeys \edit\command under shell, if not present. Finally, change its default string with the value notepad.exe %1. However, if you want to revert to the original setting, delete the added subkeys and changed values. The changes take effect after a restart or logoff. When editing the registry it is highly recommended to run a quick scan for optimization, you can test your system now for free.
Script files may contain malicious script commands that attempt to perform unwanted actions on your computer. Though its a powerful mechanism to automate certain tasks, its also a common source of security threat. The better option is to take a look at the script files before executing them. To avoid security violations, you can make the script files to open with notepad on a double click instead of executing the script. For this, go to start > run menu, enter regedit and navigate to the registry path listed below. Now, right-click and modify the default string value to edit. Then, create the subkeys \edit\command under shell, if not present. Finally, change its default string with the value notepad.exe %1. However, if you want to revert to the original setting, delete the added subkeys and changed values. The changes take effect after a restart or logoff. When editing the registry it is highly recommended to run a quick scan for optimization, you can test your system now for free.
Screenshots

First, click the 'Start' button, and select 'Run'. In the resulting dialog box, type "regedit".

Go to <b>[HKEY_CLASSES_ROOT\WSHFile\Shell\]</b>, in the open area right-click on "(Default)" and click on 'Modify'.

Enter the value "Edit" without quotation in the text box and click on 'OK'.

Go to <b>[HKEY_CLASSES_ROOT\WSHFile\Shell\]</b>, key and create a new key with the name "Edit" under "Shell".

Then, create a "Command" key under "Edit".

Next, right-click on "(Default)" and click on 'Modify'.

Finally, enter the value "Notepad.exe %1" in the text box and click on 'OK'.
Registry Entries
- back to top- Path: [HKEY_CLASSES_ROOT\WSHFile\Shell\]
- Location: Root
- Value Name: Default
- Data Type: REG_SZ (String Value)
- Action Type: Modified
- Path: [HKEY_CLASSES_ROOT\WSHFile\Shell\]
- Location: Root
- Value Name: Edit
- Data Type: Key
- Action Type: Add an Entry
- Path: [HKEY_CLASSES_ROOT\WSHFile\Shell\Edit\]
- Location: Root
- Value Name: Command
- Data Type: Key
- Action Type: Add an Entry
- Path: [HKEY_CLASSES_ROOT\WSHFile\Shell\Edit\Command\]
- Location: Root
- Value Name: Default
- Data Type: REG_SZ (String Value)
- Action Type: Modified
Tweak Library Terms
- back to top- Application Paths
- Authentication
- Auto Play
- Browser
- Console
- Control Panel
- CPU
- Desktop
- Display
- Error Reporting
- Explorer
- File System
- Files and Folders
- Firewall
- Fonts and Icons
- General Info
- Group Policies
- Hardware
- Input/Output Devices
- Installations
- Internet Explorer
- Memory Settings
- Messenger
- Microsoft Office
- Networks Cards
- Network Internet Connections
- Other Programs
- Outlook and Outlook Express
- Performance Settings
- Product Updates
- Scheduler
- Search
- Security
- Services
- Sound and Video Controllers
- Start Menu
- Startup and Shutdown
- Storage Devices
- System
- System Restore
- System Settings
- Taskbar
- User Interface
- Windows Applications
- Windows Firewall
- Windows Media Player
- Winzip
