I stand corrected ... I've just this seond noticed the difference
(opening my eyes must have helped
That's an interesting behavioral difference ... I'll do some digging and
see what else turns up.
Dean
--
Dean Wells [MVP / Windows platform]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l
"Dean Wells [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Richie,
>
> I've tested your enclosed syntax on 2000, XP and 2003. The bahavior of
> the .BAT script is is identical to that of the .CMD script on all 3
> platforms ... unless I'm missing the difference you're attempting to
> exhibit.
>
> Dean
>
> --
> Dean Wells [MVP / Windows platform]
> MSEtechnology
> [[ Please respond to the Newsgroup only regarding posts ]]
> R e m o v e t h e m a s k t o s e n d e m a i l
>
>
> "Ritchie" <(E-Mail Removed)> wrote in message
> news:bf9iad$cgcjq$(E-Mail Removed)...
> > "Dean Wells [MVP]" <(E-Mail Removed)> wrote in message
> news:#(E-Mail Removed)...
> > > No difference in behavior ... whatsoever ... in the context of
this
> > > newsgroup at least.
> >
> > I don't mean to be picky, but that's not strictly true. Create two
> copies
> > of the script below, save one as a .bat, the other as a .cmd:-
> >
> > @echo off&setlocal ENABLEEXTENSIONS
> > call :func&&echo/I'm a cmd||echo/I'm a bat
> > goto :EOF
> >
> > :func
> > md;2>nul
> > set var=1
> >
> > I think .cmd is the preferred extension for NT/2000/XP/2003 scripts.
> >
> > --
> > Ritchie
> >
> >
> >
>
>