Tom's Hardware > Forum > Windows XP > Configuration & Customize > .BAT files not running or recognized correctly

.BAT files not running or recognized correctly

Forum Windows XP : Configuration & Customize - .BAT files not running or recognized correctly

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

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

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

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

"TonyNunan" wrote:
|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
|

Reply to Anonymous

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

Thank you for your reply.

As soon as the Laptop in question comes back into the State I will try them
out!

Tony

"Dave Patrick" wrote:

> 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
>
> "TonyNunan" wrote:
> |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
> |
>
>
>

Reply to Anonymous

Archived from groups: microsoft.public.windowsxp.configuration_manage (More info?)

 

You're welcome.

--
Regards,

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

"TonyNunan" wrote:
| Thank you for your reply.
|
| As soon as the Laptop in question comes back into the State I will try
them
| out!
|
| Tony

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Configuration & Customize > .BAT files not running or recognized correctly
Go to:

There are 1377 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