Using Windows 95 Explorer Editing Batch Files Paul Jones
Is there a way to edit, not run, a batch file when I double-click on its entry in an Explorer window?
Windows 95 actively prevents you from changing the double-click default for the BAT extension from Run to Edit. If you open Explorer, choose View, Options, switch to the File Types tab, scroll down to MSDOS Batch File, and click Edit, you would expect to be able to change the default behavior by clicking once on the Edit action, then clicking on Set Default. Unfortunately, Windows 95 grays out the Set Default button. Fortunately, you can take matters into your own hands by hacking the Registry. Run Regedit, taking care to make a backup before you do anything else (see "The Registry: Safety Is Job #1,"). Change the HKEY_CLASSES_ROOT batfile key's EditFlags value from D0 04 00 00 to D0 00 00 00. Close Regedit. Now go back into Explorer, and the Set Default key will no longer be grayed out. Set Edit as the default, and every time you double-click on a BAT file, Notepad will pop up with the file already loaded for you to modify.