For all intents and purposes they are the same. I seem to recall Rex
saying something about COMMAND.COM sends .BAT statements to CMD.EXE to
execute. And CMD files are executed directly by CMD.EXE.
Historically, .CMD files came from OS/2. When OS/NT turned into WinNT, it
just naturally supported them I suppose.
I know that execution of a .BAT file is line by line. I.e. the file is
opened, the next line is read, the file is closed. And so on. That
allows .BAT files to be self-modifying.
BTM files are read as a whole. I don't know if there are any special
execution idioms around CMD files.
-Scott
Kachupp <> wrote on 10/21/2010 09:56:44 PM:
> CMD and BAT files are the same .. CMD files are executed by CMD.EXE,
> BAT files are executed by command.com
>
>
>
> ---Quote---
> > -----Original Message-----
> > From: CSGalloway@nc.rr.com [mailto:]
> > Sent: Friday, 22 October 2010 1:31 p.m.
> > To: kachupp@gmail.com
> > Subject: [Support-t-2357] .CMD .vs. .BAT
> >
> >
> > I have RTFM but don't really understand the difference between the
> two file extensions. Would
> > someone please explain.....???
> >
> >
> >
> >
> >
> >
> ---End Quote---
>
>
>