Unknown problem with batch file!

March 27, 2009 at 23:06:52
Specs: Windows XP

Here is my problem:

I have a batch file that execute very well on my computer, but does not on my friend computer. I think it is not recognized as a batch file and when I try to execute it, it opens in Wordpad window and does nothing.

We both have windows XP.

I don't know much about batch files, please help me.

See More: Unknown problem with batch file!

Report •

March 27, 2009 at 23:38:04
Either fix the file association or try .cmd instead of .bat(or visa-versa depending on what you are using).

Here is a quote from a post I made a while ago that should help you re-associate .bat and .cmd if you want to. It assumes classic view in the control panel, if your using xp styled view "folder options" may be inside a sub-category of the control panel:

"Here's how to edit them, goto Control panel>Folder options>File types. Hit the new button type in bat or cmd and hit the advanced button. The associated file type should load up to "MS-Dos batch file" for bat and "Windows NT command script" for cmd, if they are not automatically selected, select them from the drop down list and click on ok. If you don't hit the advanced button you will get an error that the file type is already in use."

Report •

March 28, 2009 at 00:02:23
the obvious:
where is the bat?
what's in it?
how are you running it?

the not so obvious:
what is it called?

If at first you don't succeed, you're about average.


Report •

March 28, 2009 at 13:19:30
Thanks Judago, it helped me a lot.

Report •

Related Solutions

Ask Question