Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
When I right click on any batch file and click edit,I get a message "windows can not find this file, make sure you typed the name correctly and then try again". This happened suddenly. If I try this with a .txt file it works fine. I have to clue as to how to fix this, any thoughts?

This can be caused by a error in the file associations.
1 .Open My Computer
2 .Click TOOLS
3. Folder Options (XP)
4. Click File Types TabThe .BAT extension may not be listed automatically, so you must add this extension.
1. Click New
2. Type in .BAT as the extension
3. Click The Advanced TAB
4. The default Associated File Type should now be MS-DOS BATCH FILE, if not use to drop down box and select it.
5. Click OKNow, the batch file should now be listed under Registered File Types.
1. Click on that BATCH Extension
2. Click the ADVANCED Button.
3. Under ACTIONS, Click Edit.
4. Application used to perform action:
should be:
"C:\WINDOWS\System32\NOTEPAD.exe %1"
Without the quotation marks
5. Make sure USE DDE is checked
For application "NOTEPAD"
For Topic "SYSTEM"
6. Click OK
7. OK Again
8. CloseI know its long, but if you follow all the directions, you should have it working.
"Cannot delete tmp150-3.tmp: There is not enough free disk space. Delete one or more files to free disk space, and then try again."

Thanks for you reply. Did exactly as you listed but it made no difference. I can create a batch file, I can execute it, all works fine. But if I try to edit it by right clicking on it and choosing edit, I get the message: Windows cannot find the file
C:\save.bat. Make sure you typed the name correctly. (C:\save.bat is one of several in the c: folder-I get the same message no matter which I right click on.) I can edit them fine in an msdos window, but this is annoying and I want to fix it

I figured out what the problem was. The error message was displayed incorrectly-it said it couldn't find the batch file; what it meant was it couldn't find notepad which is needed to edit the batch file. It seems notepad.exe is normally in the windows folder AND the windows\system32 folder. On my computer it somehow got removed from the system32 folder. Once I copied it back to the system32 folder everything worked fine again...Anyway this might help someone in the future. Thanks again for your help
Dickson

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |