Richard,
>> I'm deleting the BAT extension and rerunning the .reg file and see if things get any better.
In case that does not help, post the .BAT file association details here.
1. Download FileExtInfo.zip from here:
http://windowsxp.mvps.org/fileextinfo.htm
2. Unzip the utility and extract the files to Desktop.
3. Double-click "FileExtInfo.exe" to run it.
4. Select ".BAT" from the list
5. Click "View file association report"
6. Copy the contents of the report and include it in your reply.
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting
http://www.winhelponline.com
"Richard" <RichardDummyMailbox58407@USComputerGurus.com> wrote in message news:1184298636.389060.248530@o61g2000hsh.googlegroups.com...
On Jul 12, 6:03 pm, "Pegasus \(MVP\)" <I....@fly.com> wrote:
> You don't appear to have a problem any more.
>
> "Richard" <RichardDummyMailbox58...@USComputerGurus.com> wrote in message
>
> news:1184274810.946805.138050@r34g2000hsd.googlegroups.com...
>
> > On Jul 12, 12:20 pm, "SingaporeWebDesign"
> > <SingaporeWebDesign_...@bootstrike.com> wrote:
> >> Hello,
>
> >> Download the Batch File Association Fix
> >> herehttp://www.dougknox.com/xp/file_assoc.htm
>
> >> --
> >> Singapore Web Designhttp://www.bootstrike.com/Webdesign/
> >> Singapore Web Hostinghttp://www.bootstrike.com/WinXP/faq.html
> >> Windows XP FAQ
>
> >> "Richard" <RichardDummyMailbox58...@USComputerGurus.com> wrote in message
>
> >>news:1184254860.601936.41640@o61g2000hsh.googlegroups.com...
>
> >> >I wrote a .bat script SayHello.bat amd got (essentially): "C:
> >> > \SayHello.bat is not a valid Win32 application."
>
> >> > The two line script was simply:
> >> > @echo Hello
> >> > @pause
>
> >> > To my surprise, "Windows Explorer | Tools | Folder options | File
> >> > types" reported consecutively: AWB, B64, BHX ... but no BAT.
>
> >> > I attempted to add BAT by clicking New, providing the extension
> >> > "BAT" (without the quotes), and clicking Advanced. In a moment, the
> >> > Associated File Type :MS-DOS Batch File" was reported. I clicked OK.
> >> > and Close. But I got the same symptom!
>
> >> > I checked to see whether BAT had, in fact, been added to XP's
> >> > registered types. It reported the same trio as shown above no BAT.
>
> >> > I'm running WinXP/SP2, which is up-to-date with Windows Update.
>
> >> > Any ideas?
>
> >> > TIA,
> >> > Richard
>
> > Thanks to both of you for your guidance.
>
> > I downloaded/extracted/ran .reg to repair the registration. It
> > reported success. However, double-clicking SayHello.bat in a new
> > Windows Explorer window failed. Also, the new window's File Types
> > displayed no BAT.
>
> > Maybe a reboot is necessary to 'clear XP's head".
>
> > But the good news is that running SayHello.bat in a Command window
> > worked now!! (It had not earlier today.)
>
> > Here's the results requested by Pegasus:
>
> > K:\_Projects\JavaScript\ScriptValidation>SayHello.bat
> > Hello
> > Press any key to continue . . .
>
> > K:\_Projects\JavaScript\ScriptValidation>assoc.bat
> > .bat=batfile
>
> > K:\_Projects\JavaScript\ScriptValidation>
>
> > I'll reboot just for kicks to see if that's relevant.
>
> > Best wishes,
> > Richard
The problem is half solved: SayHello.bat now runs from within a
Command window. However, double-clicking SayHello.bat's name in an
Explorer window still produces the "not a Win32 program" complaint ...
despite the fact that I had rebooted :-(
I again looked at File Types and saw no BAT extension. I added it
again, and it appeared as the first item on the extensions list. This
time I clicked the Advanced button in File Types tab.
The action for "edit" invoked Notepad with a %1 argument ... looks
right to me.
The "open" action merely invoked %1 with some argument ... that looks
circular to me.
I modified the open action to "(fully qualified) cmd.exe /c
%1" (without the quotes). Now when I double-clicked SayHello.bat, I
didn't get the "Win32" complaint. Instead a got an empty Notepad
window. That's wrong, of course, but it's *progress*
I tried to go back and edit the .bat definition, but cannot find it
when I list the extensions alphabetically. When I try to re-enter BAT
as a new extension, I'm informed that "Extension bat is already
associated with File Type MS-DOS Batch File. I elected to un-
associate BAT, in which case it re-appeared at the top of the list.
This time, I clicked change but didn't get option to accept File Type
MS-DOS Batch File. I'm deleting the BAT extension and rerunning
the .reg file and see if things get any better.