Re: What is the difference between CMD and BAT file ?



..cmd files will NOT work on non NT Windows versions where .bat files will.

Both .cmd and .bat files work on NT Windows versions.

Windows XP is really Windows NT 5.1.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:OR8iYlmwGHA.4160@xxxxxxxxxxxxxxxxxxxx,
John <John@xxxxxxxxxxxxxxxxxxxxxxxxx> hunted and pecked:
Hi,

Could anyone give me some advice on when to use CMD and BAT file ?

This is because we are going to run some scripts to delete the shortcuts
in desktop. We already got the command but some fellow says it should
be with BAT extension and some with CMD one.

Your advice is sought.

John
.



Relevant Pages

  • Re: .cmd vs. .bat
    ... Windows while .bat files will run in the "DOS based" Windows AND/OR ... Is there a difference between .cmd files and .bat files? ... another with some of the more mundane XP command prompt additions. ...
    (microsoft.public.windowsxp.general)
  • Re: turning on color in cmd window
    ... Set the Command Processor Appearance in Windows XP ... ANSI.COM (old DOS program) does not work in XP as in DOS. ... It allows colorful CMD prompts but no ansi code in BAT files is executed. ... Is there any way to enable ANSI in a CMD window and allow color in BAT or CMD files? ...
    (microsoft.public.windowsxp.general)
  • Re: What is the difference between CMD and BAT file ?
    ... ..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. ... Files of .bat will be listed in the File Types dialog box as MS-DOS Batch ...
    (microsoft.public.windowsxp.general)
  • Re: SVCHOST.EXE inscreases in size until nothing works on the comp
    ... SOunds like you didn't Click OK when you typed cmd in the STart Menu | Run ... If you want to re-initialize the entire Windows Update operations (have ... This will cause Windows/Microsoft Update to sense that the support files ...
    (microsoft.public.windowsxp.general)
  • =?Utf-8?Q?Re:_DOS_Fenster_schaltet_nach_VG?= =?Utf-8?Q?A-Bild_grunds=C3=A4tzlich_in_Voll
    ... EMS Zuweisungen etc. (EMS muss für diese DOS Anwendung ... Es scheint mir ein Windows Problem zu sein, dass leider CMD nicht in dem ... Installieren Sie Virtual PC und Windows ME, ... >>> ist ja auch im Fenster, nur nach dem VGA Modus eben nicht mehr. ...
    (microsoft.public.de.german.windowsxp.sonstiges)