Computing.Net > Forums > Windows XP > I cant run 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.

I cant run batch files

Reply to Message Icon

Name: sunquick
Date: January 28, 2009 at 18:20:27 Pacific
OS: Windows XP
Subcategory: General
Comment:

guys! i cant run batch files on my computer.i write some command lines on notepad and save as.bat and try to open it but it's opening notepad. why? thats a .bat file but its opening in notepad!! anyone please help me ?



Sponsored Link
Ads by Google

Response Number 1
Name: aegis1
Date: January 28, 2009 at 19:11:36 Pacific
Reply:

If notepad is opening them, it's probably because they have a .TXT extension. Batch files have to have a .BAT extension.If you can't see the extensions, open My Computer > Tools > Folder Options > View and untick 'Hide extensions for known file types'.
Change the .txt to .bat.

FWIW to XP users: When you click on the 'Command Prompt' you are just causing the 'Command prompt' to be displayed. This prompt gives you access to NTVDM.EXE, the 'NT Virtual DOS Manager'.


0

Response Number 2
Name: Tufenuf
Date: January 28, 2009 at 19:30:29 Pacific
Reply:

sunquick, Try the "Batch File Association Fix" at the link below. Instructions are on the page.

http://www.dougknox.com/xp/file_ass...

Tufenuf


0

Response Number 3
Name: Wahine
Date: January 29, 2009 at 00:58:46 Pacific
Reply:

When you save a .bat file in Notepad you must enclose the filename.ext in " " so that Notepad won't append the .txt suffix.

Your files are probably being saved as filename.bat.txt


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: I cant run batch files

How do I Auto run batch file Every 60 minute www.computing.net/answers/windows-xp/how-do-i-auto-run-batch-file-every-60-minute/179011.html

cant run .exe files at all www.computing.net/answers/windows-xp/cant-run-exe-files-at-all/178098.html

How to run batch files hidden mode? www.computing.net/answers/windows-xp/how-to-run-batch-files-hidden-mode/163886.html