On Mon, 29 Jan 2007 23:13:15 -0700, Al Dunbar [MS-MVP] wrote in
microsoft.public.win2000.cmdprompt.admin:
>"Herb Martin" <news@...> wrote in message
>news:(E-Mail Removed)...
>>
>> "David Trimboli" <trimboli@...> wrote in message
>> news:(E-Mail Removed)...
>> > Al Dunbar [MS-MVP] wrote:
>> >> Way simpler to use the .cmd extension in the first place.
>> >
>> > Quite true. I just find it odd that batch files, which are simply text
>> > files containing command lines, absolutely must have .cmd or .bat to work.
>
>Batch files do not "work" on their own, but are processed by the O/S. And I
>have mostly always found it a waste of time to argue with the O/S on these
>things.
Not strictly true; batch files are processed by a batch file processor,
which is usually also a command line processor (CLI). A popular sample
CLI is CMD.EXE; there are others.
>Do executable files work with extensions other than the few obvious ones?
>vbscript files?
[snip]
Yes: rename NOTEPAD.EXE to anything.any and:
start anything.any
will run it.
Also:
cscript //E:vbscript fu.bar
will work as expected. See:
<http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_divn.mspx?mfr=true>.
OTOH, there seems to be indeed no method to make CMD.EXE or COMMAND.COM
(or 4NT for that matter) to process a file with a non-standard
extension.
--
Michael Bednarek
http://mbednarek.com/ "POST NO BILLS"