I cant run batch files

sunquick January 28, 2009 at 18:20:27
Specs: Windows XP
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 ?

See More: I cant run batch files

Report •


#1
January 28, 2009 at 19:11:36
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'.


Report •

#2
January 28, 2009 at 19:30:29
sunquick, Try the "Batch File Association Fix" at the link below. Instructions are on the page.

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

Tufenuf


Report •

#3
January 29, 2009 at 00:58:46
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


Report •

Related Solutions


Ask Question