Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Can't change file association for DOS batch files

Windows XP Support


Reply
 
Thread Tools Search this Thread
  #1  
Old 30-03-2008
Musawwir Spiegel
 
Posts: n/a
Can't change file association for DOS batch files

I am running Windows XP Home.

The other day I went into the file associations page of Explorer /
Tools and changed the file association setting for editing batch files
from the default Notepad to my favored editor EditPad Pro.

Today, when I tried to run a bach file, instead of it running, it
opened in EditPad Pro. I thought that it would be easy to change the
setting for running such a file, but when I went into the file
association page, MS Dos batch files were nowhere to be found.

How can I fix this?

Musawwir Spiegel
mms@spiegel-law.com
Reply With Quote
  #2  
Old 30-03-2008
Andrew E.
 
Posts: n/a
RE: Can't change file association for DOS batch files

Try run,type:cmd In cmd type:Sfc /Scannow Install xp cd,exit the info page.
Once its thru,remove cd,type:CHKDSK C: /F Agree to restart,type:EXIT Re-
start pc.

"Musawwir Spiegel" wrote:

> I am running Windows XP Home.
>
> The other day I went into the file associations page of Explorer /
> Tools and changed the file association setting for editing batch files
> from the default Notepad to my favored editor EditPad Pro.
>
> Today, when I tried to run a bach file, instead of it running, it
> opened in EditPad Pro. I thought that it would be easy to change the
> setting for running such a file, but when I went into the file
> association page, MS Dos batch files were nowhere to be found.
>
> How can I fix this?
>
> Musawwir Spiegel
> mms@spiegel-law.com
>

Reply With Quote
  #3  
Old 30-03-2008
Ramesh, MS-MVP
 
Posts: n/a
Re: Can't change file association for DOS batch files

Run the .BAT file association fix:
http://www.dougknox.com/xp/file_assoc.htm

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com
Winhelponline.com blog http://www.winhelponline.com/blog


"Musawwir Spiegel" <mms@spiegel-law.com> wrote in message news:mqbtu3hp75uj6bduohhitb57asm00i93s9@4ax.com...
I am running Windows XP Home.

The other day I went into the file associations page of Explorer /
Tools and changed the file association setting for editing batch files
from the default Notepad to my favored editor EditPad Pro.

Today, when I tried to run a bach file, instead of it running, it
opened in EditPad Pro. I thought that it would be easy to change the
setting for running such a file, but when I went into the file
association page, MS Dos batch files were nowhere to be found.

How can I fix this?

Musawwir Spiegel
mms@spiegel-law.com
Reply With Quote
  #4  
Old 03-04-2008
Musawwir Spiegel
 
Posts: n/a
Re: Can't change file association for DOS batch files

Dear Ramesh,

Thank you so much. The registry patch at the dougknox site worked
like a charm.

I have one follow-up question. I would still like to associate my
preferred text editor for editing batch files (where the context menu
that appears when right clicking a batch filename in the Explorer has
its "edit" choice linked to something other than Notepad).

Is there a way to do that without once again causing a double click of
the filename to merely open the text editor to that file?

Musawwir



"Ramesh, MS-MVP" <ramesh@unknownhost> wrote:

>Run the .BAT file association fix:
>http://www.dougknox.com/xp/file_assoc.htm


Reply With Quote
  #5  
Old 04-04-2008
Ramesh, MS-MVP
 
Posts: n/a
Re: Can't change file association for DOS batch files

Hi Musawwir,

Yes. You can change the default editor for .BAT files. See:

Change the default editor for BAT files:
http://www.winhelponline.com/blog/ch...for-bat-files/

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com
Winhelponline.com blog http://www.winhelponline.com/blog


"Musawwir Spiegel" <mms@spiegel-law.com> wrote in message news:pd0av3dsvmfjdmru19cpu7rb11oq42fn8h@4ax.com...
Dear Ramesh,

Thank you so much. The registry patch at the dougknox site worked
like a charm.

I have one follow-up question. I would still like to associate my
preferred text editor for editing batch files (where the context menu
that appears when right clicking a batch filename in the Explorer has
its "edit" choice linked to something other than Notepad).

Is there a way to do that without once again causing a double click of
the filename to merely open the text editor to that file?

Musawwir



"Ramesh, MS-MVP" <ramesh@unknownhost> wrote:

>Run the .BAT file association fix:
>http://www.dougknox.com/xp/file_assoc.htm


Reply With Quote
  #6  
Old 10-03-2009
Member
 
Join Date: Mar 2009
Posts: 2
Re: Can't change file association for DOS batch files

Hello
I'm running XP Pro SP3 French.
My right clic menu on a .bat file is different depending of the folder where the bat file is.
If the bat file is in a subfolder of the start menu, then i can see "edit print and open with".
If the bat file is on the desktop or in "my document", the right click menu is smaller and do not show edit, print etc...
I already tried the BAT file association fix.

Can you help me?

Paul Bourque
Reply With Quote
  #7  
Old 10-03-2009
ju.c
 
Posts: n/a
Re: Can't change file association for DOS batch files

(Please don't delete previous entries, thanks)


"lepitb" <lepitb.3ot0ja@DoNotSpam.com> wrote in message news:lepitb.3ot0ja@DoNotSpam.com...
>
> Hello
> I'm running XP Pro SP3 French.
> My right clic menu on a .bat file is different depending of the folder
> where the bat file is.
> If the bat file is in a subfolder of the start menu, then i can see
> "edit print and open with".
> If the bat file is on the desktop or in "my document", the right click
> menu is smaller and do not show edit, print etc...
> I already tried the BAT file association fix.
>
> Can you help me?
>
> Paul Bourque
>
>
> --
> lepitb
>

Reply With Quote
  #8  
Old 10-03-2009
LVTravel
 
Posts: n/a
Re: Can't change file association for DOS batch files



"lepitb" <lepitb.3ot0ja@DoNotSpam.com> wrote in message
news:lepitb.3ot0ja@DoNotSpam.com...
>
> Hello
> I'm running XP Pro SP3 French.
> My right clic menu on a .bat file is different depending of the folder
> where the bat file is.
> If the bat file is in a subfolder of the start menu, then i can see
> "edit print and open with".
> If the bat file is on the desktop or in "my document", the right click
> menu is smaller and do not show edit, print etc...
> I already tried the BAT file association fix.
>
> Can you help me?
>
> Paul Bourque
>
>
> --
> lepitb
> ------------------------------------------------------------------------
> lepitb's Profile: http://forums.techarena.in/members/lepitb.htm
> View this thread: http://forums.techarena.in/customize-xp/941232.htm
>
> http://forums.techarena.in
>


Would the desktop or my document batch files be shortcuts? Right click the
Icon then click properties and tell us what they say. If the Properties say
anything about Target and then the batch file name, then they are shortcuts
to the batch file. If it says Type of file and Description with the batch
file name then it is the actual file. The right click menu will be
different for each type of file in this case (shortcut or actual file.)

Reply With Quote
  #9  
Old 10-03-2009
LVTravel
 
Posts: n/a
Re: Can't change file association for DOS batch files



"ju.c" <bibidybubidyboop@mailinator.com> wrote in message
news:eeTMYLRoJHA.3984@TK2MSFTNGP02.phx.gbl...
> (Please don't delete previous entries, thanks)
>
>
> "lepitb" <lepitb.3ot0ja@DoNotSpam.com> wrote in message
> news:lepitb.3ot0ja@DoNotSpam.com...
>>
>> Hello
>> I'm running XP Pro SP3 French.
>> My right clic menu on a .bat file is different depending of the folder
>> where the bat file is.
>> If the bat file is in a subfolder of the start menu, then i can see
>> "edit print and open with".
>> If the bat file is on the desktop or in "my document", the right click
>> menu is smaller and do not show edit, print etc...
>> I already tried the BAT file association fix.
>>
>> Can you help me?
>>
>> Paul Bourque
>>
>>
>> --
>> lepitb
>>


The OP probably didn't. The OP is using the techarena forum and that is
actually much worse than the web interface that many on here use. Most of
the data in the thread is junked before it shows on MS's or other
newsgroups.

Reply With Quote
  #10  
Old 10-03-2009
Member
 
Join Date: Mar 2009
Posts: 2
Re: Can't change file association for DOS batch files

Those files aren't shortcuts.
They are real bat files.
I attached 3 screen images.

Attachment 7716

Attachment 7717

Attachment 7718

I do not understand why, in most cases, I do not have access to the full menu.

Paul
Reply With Quote
  #11  
Old 11-03-2009
LVTravel
 
Posts: n/a
Re: Can't change file association for DOS batch files



"lepitb" <lepitb.3ou67b@DoNotSpam.com> wrote in message
news:lepitb.3ou67b@DoNotSpam.com...
>
> Those files aren't shortcuts.
> They are real bat files.
> I attached 3 screen images.
>
> 7716
>
> 7717
>
> 7718
>
> I do not understand why, in most cases, I do not have access to the
> full menu.
>
> Paul
>
>
> +-------------------------------------------------------------------+
> |Filename: ScreenShot003.jpg |
> |Download: http://forums.techarena.in/attachment.php?attachmentid=7718|
> +-------------------------------------------------------------------+
>
> --
> lepitb
> ------------------------------------------------------------------------
> lepitb's Profile: http://forums.techarena.in/members/lepitb.htm
> View this thread: http://forums.techarena.in/customize-xp/941232.htm
>
> http://forums.techarena.in
>


After some experimenting on my Vista system I have found that depending on
exactly where the file is stored you may or may not have the full menu
available on a right click. Found this by moving a few batch files around
on the drive. Don't know what the answer is but it may be one of those
"Microsoft knows best" features.

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Can't change file association for DOS batch files"
Thread Thread Starter Forum Replies Last Post
Running batch files as administrator change working directory corradolab@ngi.it Vista Help 8 09-11-2011 07:40 PM
Lost file association with exe files Rod Windows Vista Performance 5 18-02-2010 03:43 AM
How to Change Icon of the Batch File? Segvoia Operating Systems 3 20-11-2009 10:36 AM
Dos batch file to sort files based on file names. Jon Osborn Windows Server Help 9 17-06-2009 11:06 AM
File Association Problem .doc Files in Vista! Travis Christopher MS Office Support 4 14-05-2007 09:53 PM


All times are GMT +5.5. The time now is 06:36 AM.