[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 736
  • Last Modified:

Windows 7 default notepad to open all unknown file extension

I have a need to have notepad be the default program to open all unknown file types.  I can get this to work with WinXp by editing HKEY_CLASSES_ROOT\Unknown\shell\openas\command and changing the default value to Notepad.exe %1.  However, this does not work for Windows 7.  Does anyone have a way to make this work in Win7.  I do not want an option to right click and open in Notepad or a send to option.  I need it to automatically open in notepad for any files with unknown file types.  Thank you.
0
LRI1
Asked:
LRI1
  • 2
  • 2
1 Solution
 
Darius GhassemCommented:
0
 
LRI1Author Commented:
Thanks dariusg but I already know how to do that.  Let me explain further.  We have thousands of files, all simple text or ascii files used for our machines on the shop floor.  These files go back 20 or 30 years.  Each file has either a 3 letter extension that references the company the part is manufactured for or the revision.  For example 0002-282.sis, 0001-585.001, 0008-454.089 and so on.  I don't want to have to associate hundreds of file types on multiple computers so the workstations on the shop floor can open the files.  I want Windows to open all unknowns with notepad.  We have a mix on Win7 and WinXP machines.  The WinXP reg edit works but does not in Win 7.  I need that or something like that to work in Win 7.  I
0
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
Try this:

Add key "notepad" to Unknown/shell
Add key "command" to Unknown/shell/notepad
Set the default of "command" to the Notepad executable (probably c:\windows\system32\notepad.exe)
Set the default of "shell" to "notepad"

Regards, Joe
0
 
LRI1Author Commented:
That is it!  Thank you so much!
0
 
Joe Winograd, EE MVE 2015&2016DeveloperCommented:
You're welcome. Glad it worked for you. Regards, Joe
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now