.BAT files not running or recognized correctly

G

Guest

I look after a few machines at work, and one of them has got a problem with
..bat files.

If I try to run one, it asks which program I want to use, and also doesn't
offer the Edit option when right-clicking on a .bat file.

If I rename it with a .cmd extension it behaves correctly!

I have checked that the PATEXT environment variable correctly lists .BAT
along with all the other extensions. I have also looked in the registry and
can find no obvious corruptions, and the machine seems to perform correctly
in every other respect.

Can anyone suggest anywhere else I might look to find what has gone wrong?

Thanks,

Tony
 
D

Dave Patrick

From a command prompt;
assoc .bat
should return with
..bat=batfile
If not
assoc .bat=batfile
to restore the default file type association.

ftype batfile
should return with
batfile="%1" %*
If not
ftype batfile="%1" %*
to restore the default "Open" action for the file type.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I look after a few machines at work, and one of them has got a problem with
| .bat files.
|
| If I try to run one, it asks which program I want to use, and also doesn't
| offer the Edit option when right-clicking on a .bat file.
|
| If I rename it with a .cmd extension it behaves correctly!
|
| I have checked that the PATEXT environment variable correctly lists .BAT
| along with all the other extensions. I have also looked in the registry
and
| can find no obvious corruptions, and the machine seems to perform
correctly
| in every other respect.
|
| Can anyone suggest anywhere else I might look to find what has gone wrong?
|
| Thanks,
|
| Tony
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top