Failed running .bat file from WinXP Explorer

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I'm having brain cramps: I double-clicked a filename "Test.bat"
displayed in Windows Explorer under WinXP/SP2, which up-to-date with
Windows Update.

I got a message box claiming "K:\_Utilities\FreeRIDE\Test.bat is not a
valid Win32 application." If I open a command window to invoke
the .bat file, it works fine.

The file and its execution follows. Any ideas?

Thanks in advance,
Richard

====== Test.bat =====
echo Hello, World
== === end ====


====== Command Prompt window ===
K:\_Utilities\FreeRIDE>Test

K:\_Utilities\FreeRIDE>echo Hello, World
Hello, World

K:\_Utilities\FreeRIDE>
========= end ==========

.



Relevant Pages

  • Re: Batch Delete VB code
    ... I put a comment in the .bat file where the technique came from. ... Windows start button|Run ... %1 is the folder that you rightclicked on. ... "Dave Peterson" wrote: ...
    (microsoft.public.excel.programming)
  • Re: Great SWT Program
    ... an attempt to point out that "not all the world uses Windows". ... I wiped out the whole Windows system directory by clicking on ... I was curious about what was in that .bat file, ... clicking on the icon for other kinds of text files opened them ...
    (comp.lang.java.programmer)
  • Re: Startup Group shortcut to BAT file fails for some users
    ... >> is getting Windows to run it at all. ... >> within the BAT file, it's getting it to execute in the first place. ... >> the BAT file executes correctly. ... The entire content of this startup group is as follows: ...
    (microsoft.public.win2000.general)
  • Re: BAT file to retrieve Registry Setting
    ... workstations are the infamous Windows 95 with a few Windows 98s. ... I am not sure if these machines have reg.exe on them. ... I plan to setup a BAT file accessible on the network for each person to run ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Dependencies on Windows Explorer
    ... before Windows loads or in safe mode). ... My Bat file does fine. ... comments, they should be double colons, if labels, then they won't ...
    (microsoft.public.windowsxp.customize)