Computing.Net > Forums > Windows XP > cant edit batch files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

cant edit batch files

Reply to Message Icon

Name: tech type
Date: July 23, 2004 at 01:15:32 Pacific
OS: XP Home
CPU/Ram: amd1700/512mb
Comment:

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?



Sponsored Link
Ads by Google

Response Number 1
Name: TribalRehab
Date: July 23, 2004 at 18:02:34 Pacific
Reply:

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 Tab

The .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 OK

Now, 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. Close

I 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."


0

Response Number 2
Name: tech type
Date: July 24, 2004 at 00:56:55 Pacific
Reply:

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


0

Response Number 3
Name: tech type
Date: July 24, 2004 at 02:09:48 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: cant edit batch files

I cant run batch files www.computing.net/answers/windows-xp/i-cant-run-batch-files/173716.html

Batch file to edit text file www.computing.net/answers/windows-xp/batch-file-to-edit-text-file/156973.html

Cant Edit Files created in Admin www.computing.net/answers/windows-xp/cant-edit-files-created-in-admin/126695.html