Word :    Username :           
 

Hey guys,

I have a problem. You know those little batch files (.bat's) that are handy for renaming a bunch of files, or deleting them? Well, i use them from time to time - but all of a sudden, windows started asking me what to open a .bat file with! I looked all in the programs list and found nothing that said "MS-DOS prmpt" or anything. Please help me, i really need to use some .bat files!

Sponsored Links
Register or log in to remove.

This is urgent! I'm sure someone has a simple solution! :)

Reply to Cody_7

What was the question? Can you use .cmd files? Can you open start/run/cmd window?

..this is very useful and helpful place for information...

Reply to blah

What about just running them from the comand prompt?

It won't say MS-DOS prompt anywhere. Tell it to use cmd.exe to open the file. I think it is under C:/windows/system32, do a file search for it to make sure though.

<A HREF="http://www.folken.net/myrig.htm" target="_new">My precious...</A>

Reply to folken

Nope, already tried that Folken. It just opens a blank promt when i have it open like that. Here is a little screenshot of what is happening if you are still unclear:

<A HREF="http://img97.exs.cx/img97/9085/run9hb.jpg" target="_new">http://img97.exs.cx/img97/9085/run9hb.jpg</A><P ID="edit"><FONT SIZE=-1><EM>Edited by Cody_7 on 01/12/05 11:23 PM.</EM></FONT></P>

Reply to Cody_7

Its not listed under File Types on my system either. It probably only exists the registry somewhere.

To find out where I created a .zark file then tried to open it. Then I searched the registry for "zark" and found where the extentions are stored. :)

This is what I have for .bat
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.bat]
@="batfile"
"ZAMailSafeExt"="zl3"

[HKEY_CLASSES_ROOT\.bat\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

Fire up regedit and see what your you have under .bat.

You can try cuting and pasting that into a text file then renaming it to .reg and clicking on it.

BTW I just deleted the entry for .bat and I got the same problem as you. Running the .reg script fixed it.

A bigger question is what happened to corrupt your registry!!! (if indeed this is what is wrong).<P ID="edit"><FONT SIZE=-1><EM>Edited by Codesmith on 01/15/05 00:28 AM.</EM></FONT></P>

Reply to Codesmith

Go to Control Panel - Folder Options - File Types - New - type BAT for Extension, click Advanced - In the drop down menu there is an "MS-DOS Batch File" selection.

By default the BAT extension isn't listed, but you can hard code it in. It's an association that I guess really isn't list becuase DOS technically doesn't exist on that OS.

Riser

Reply to Riser
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > MS-DOS Batch Files
Go to:

There are 1210 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them