batch files no longer recognised.

By mick2 ยท 4 replies
May 8, 2007
  1. hi folks, a week a go all my .exe files and shortcuts changed to .lnk extension, i got a small programme that fixed this problem but since then all .bat files are unrecognised in xp. they have no icon and when i right click and go to properties instead of them being recognised as ms-dos batch files they are coming up as bat files. clicking on them now does nothing.
    i did a windows repair but its still the same.
    any ideas on what i can do?

    cheers mick
  2. mikescorpio81

    mikescorpio81 TS Rookie Posts: 293

    You could try renaming one to .cmd or try right-clicking one and select "Open with" (you can change this through the properties of the batch file too) and browsing to C:\WINDOWS\System32\cmd.exe

    Apart from that, can you create a new batch file?
  3. mick2

    mick2 TS Rookie Topic Starter

    when i change them to .cmd they work perfectly. i cant do the "open with" option because it isnt there when i right click. i cant create a new batch file with notepad but its still the same, unrecognised with no icon. as soon as i rename to .cmd then the cogs icon appears again.
    is it possible to create it in file types? didnt want to do this incase i buggered it up more.

    cheers mick
  4. mikescorpio81

    mikescorpio81 TS Rookie Posts: 293

    Renaming them to .cmd is a good option because it works for you. It is the same as a .bat file, so rather than creating new .bat files, create .cmd files.

    .bat is the old MS DOS extension whereas .cmd is the newer Windows extension. They both point to the same location (C:\WINDOWS\System32\cmd.exe) so remember to use .cmd extensions from now on.

    Why this happened to you I am not sure. It is possible a worm or bug has corrupted them or a program did it or it simply failed.
  5. mick2

    mick2 TS Rookie Topic Starter

    ive managed to sort it, went in to file types and added new one (bat) went into advanced and browsed to ms-dos batch file to be associated with.
    hopefully thats the last thing needed to be put right for a bit.
    thanks for looking in, appreciated.

    cheers mick
Topic Status:
Not open for further replies.

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...