batch file not getting open

Hcl india / Hcl ezeebee
January 6, 2009 at 07:20:33
Specs: Windows XP, p4 768mn
windows cannot open .bat files though cmd is intact and does open the file but not directly i think this is due to edit in file types in folder options plzz reply really urgent

See More: batch file not getting open

Report •

January 6, 2009 at 09:23:30
I don't think it's Explorer's File Types option. My copy doesn't mention BAT extension in there. It's more likely to be the registry settings. Save the following text file as a BAT.REG file and then double-click it:

[Disclaimer: if it goes wrong, it could mess up your whole system.]





@="MS-DOS Batch File"






@="\"%1\" %*"







[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]

Report •

January 6, 2009 at 12:27:33
I've found that one interesting thing about .bat and .cmd in xp's folder options is that they are not officially listed but can be accessed.

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.

You should now have access to edit openers and the like.

Repeat for every time you need to access the options for bat and cmd.

Report •

January 6, 2009 at 22:17:46
thanks very much thankuuuuuuuuuuuuuu

Report •

Related Solutions

Ask Question