Forgot this.
..CMD will be listed in PATHEXT under Set in NT in a command prompt and will
NOT be listed under non NT i.e. Windows 9x, Me, etc.
The environmental variable PATHEXT shows a list of file extensions that are
considered to be executable and regulates which extensions do not need to be
typed in a Command Prompt or the Run command.
---------------------------
Report Class Name
---------------------------
File Extension .cmd
File Class cmdfile
File Description Windows NT Command Script
Files of .cmd will be listed in the File Types dialog box as Windows NT
Command Script.
---------------------------
Report Class Name
---------------------------
File Extension .bat
File Class batfile
File Description MS-DOS Batch File
Files of .bat will be listed in the File Types dialog box as MS-DOS Batch
File.
---------------------------
There is a difference in NT on how .cmd and .bat files are handled.
<quote>
The differences between .CMD and .BAT as far as CMD.EXE is concerned are:
With extensions enabled, PATH/APPEND/PROMPT/SET/ASSOC in .CMD
files will set ERRORLEVEL regardless of error. .BAT sets ERRORLEVEL
only on errors.
Mark Zbikowski \(MSFT\)
<quote>
from...
http://groups.google.com/group/microsoft.public.win2000.cmdprompt.admin/msg/ad9066638815812c
--
Hope this helps. Let us know.
Wes
MS-MVP Windows Shell/User
In