The operative words are INTENDED and SHOULD.
1. Go try running a .cmd file in Windows 95, 98, or ME
2. Try running a .bat file containing NT specific commands in Windows
95, 98, or ME.
Since you didn't try doing what the convention is intended to avoid, you
don't observe the problem of disregarding the convention. So, YOU would
be the one that is incorrect.
Pop` wrote:
> Bob I wrote:
>
>>.cmd files are batch files that are intended to run on NT based
>>Windows while .bat files will run in the "DOS based" Windows AND/OR
>>"NT based" Windows. So ".bat" files should not reference any NT only
>>programs or command.
>>
>>John Goche wrote:
>>
>>
>>>Hello,
>>>
>>>Is there a difference between .cmd files and .bat files?
>>>More precisely, is there an established convention as
>>>to when to name a file containing a set of commands
>>>with the .cmd extension as opposed to with the .bat
>>>extension?
>>>
>>>Thanks,
>>>
>>>JG
>
>
> That's incorrect; I just created a batch file that handles local gpo and and
> another with some of the more mundane XP command prompt additions. It just
> doesn't care. All they are is a script; what executes in one will execute
> in the other.
>
>
>
|