Archived from groups: microsoft.public.windowsxp.basics (More info?)
How do I make batch files run when I double-click them. My batch files
always want to open in notepad instead of running. If I right-click them,
then click on open, they will run. However, if I use the run command from
the start menu, the same thing happens--they open in notepad. This is a
problem because I need to run a batch file with a variable, but when I try
from the run command, it only opens with notepad. I am using Windopws XP
Home edition with SP2 included. If I right-click them, hit properties, there
is no option under the general tab to change the way the fiel opens. Any
help is appreciated.
--
Walter Clayton
Any technology distinguishable from magic is insufficiently advanced.
"IrishKL" <IrishKL@discussions.microsoft.com> wrote in message
news:F49AB1C9-A8E3-4DA9-BF8F-F76DA01E8BEB@microsoft.com...
> How do I make batch files run when I double-click them. My batch files
> always want to open in notepad instead of running. If I right-click them,
> then click on open, they will run. However, if I use the run command from
> the start menu, the same thing happens--they open in notepad. This is a
> problem because I need to run a batch file with a variable, but when I try
> from the run command, it only opens with notepad. I am using Windopws XP
> Home edition with SP2 included. If I right-click them, hit properties,
> there
> is no option under the general tab to change the way the fiel opens. Any
> help is appreciated.
Archived from groups: microsoft.public.windowsxp.basics (More info?)
You can change that at: Control Panel/Folder Options/File Types/scroll
down to File Ext BAT and highlight it. Look down at the bottom of that
window and it should state that it is set to open with Notepad. Click
the "Advanced" button then change the action to "Open". Click OK and
Apply out of the window. You may have to restart to see the change.
Gene K
IrishKL wrote:
> How do I make batch files run when I double-click them. My batch files
> always want to open in notepad instead of running. If I right-click them,
> then click on open, they will run. However, if I use the run command from
> the start menu, the same thing happens--they open in notepad. This is a
> problem because I need to run a batch file with a variable, but when I try
> from the run command, it only opens with notepad. I am using Windopws XP
> Home edition with SP2 included. If I right-click them, hit properties, there
> is no option under the general tab to change the way the fiel opens. Any
> help is appreciated.
Archived from groups: microsoft.public.windowsxp.basics (More info?)
OK, I think I finally got it, although it was a little more complicated than
that. First of all .bat didn't come up when I first opened folder options,
so I had to act as though I were creating a new file extension. I then got a
message saying that the .bat extension was already associated with MSDOS
Batch files, did I want to unassociate it. I clicked no, and then .bat
appeared in the registered file extensions window. It was set to edit with
notepad; however the problem was that the default was set to edit, not open.
So from the advanced window I highlighted open, then clicked "Change
Default". That did it. Thanks for your help.
"Not Me" wrote:
> You can change that at: Control Panel/Folder Options/File Types/scroll
> down to File Ext BAT and highlight it. Look down at the bottom of that
> window and it should state that it is set to open with Notepad. Click
> the "Advanced" button then change the action to "Open". Click OK and
> Apply out of the window. You may have to restart to see the change.
> Gene K
>
> IrishKL wrote:
> > How do I make batch files run when I double-click them. My batch files
> > always want to open in notepad instead of running. If I right-click them,
> > then click on open, they will run. However, if I use the run command from
> > the start menu, the same thing happens--they open in notepad. This is a
> > problem because I need to run a batch file with a variable, but when I try
> > from the run command, it only opens with notepad. I am using Windopws XP
> > Home edition with SP2 included. If I right-click them, hit properties, there
> > is no option under the general tab to change the way the fiel opens. Any
> > help is appreciated.
>
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.