Computing.Net > Forums > Programming > Associate Batch File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Associate Batch File

Reply to Message Icon

Name: esilva
Date: April 27, 2009 at 07:10:42 Pacific
OS: Windows XP
CPU/Ram: Intel Dual Core
Subcategory: Batch
Comment:

Hi,
Made a dumb mistake. Un-associated file type
BAT in folder options/file types menu. Now i
need to put it back so that when i double click
the file it runs the batch file in the dos window.
Can't figure it out. I'm sure it's simple but can't
for the life of me figure it out. Any help would
be GREATLY appreciated.
Thanks,
e

Emilio Silva



Sponsored Link
Ads by Google

Response Number 1
Name: esilva
Date: April 27, 2009 at 07:24:10 Pacific
Reply:

never mind. found it! in case anyone is interested, found the
registry fix here:
http://www.dougknox.com/xp/file_ass...

Emilio Silva


0

Response Number 2
Name: Judago
Date: April 27, 2009 at 07:36:39 Pacific
Reply:

If you are interested there is also a gui fix.

Quote from one of my older posts:

"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."


0

Response Number 3
Name: Mechanix2Go
Date: April 27, 2009 at 08:24:27 Pacific
Reply:

Here's a rocket science quiz for you. How do you associate a file without an extension.


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

M2


0

Response Number 4
Name: Judago
Date: April 27, 2009 at 15:36:11 Pacific
Reply:

Hi M2,

The trick mentioned above works with files with no extension by specifying a dot as the file extension(one dot in the text box, nothing more), then selecting from the drop down list. This works because apparently files with no extension really have an invisible/hidden file extension of a single dot.

For third party programs first something from the list needs to be selected and saved before being reopened and clicking change.

There are reg fixes out there as well, can't remember the keys of hand.

Of course I tested all this on xp, not so sure it will all work the same on win2k.


0

Response Number 5
Name: Mechanix2Go
Date: April 27, 2009 at 18:15:51 Pacific
Reply:

Hi Judago,

Thanks for that. I'd set the noext file type many moons ago and then forgot how. LOL

With recent hardware changes I had to muddle through it again. Surprisingly, a single apostrophe seems OK. Beats me why.


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

M2


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Associate Batch File

Set file associations from a batch file??? www.computing.net/answers/programming/set-file-associations-from-a-batch-file/19592.html

FTP batch file www.computing.net/answers/programming/ftp-batch-file/9027.html

Batch Files www.computing.net/answers/programming/batch-files/14618.html