Solved

Difference between CMD and BAT files?

Posted on 1998-07-08
5
3,084 Views
Last Modified: 2013-12-28
Hi there-
I'm wondering if there is some place out there on the web or if someone knows what all the differences are between cmd files and bat files.  I'm guessing cmd files have some added functionality, but what?  And I know that W95 machines don't run cmd files, that's an obvious difference.  Are the advantages/disadvantages of these two different script formats documented anywhere?
Thanks-

     Jeremy
0
Comment
Question by:j-enos
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1784730
There is no difference (yet). CMD is just what NT is calling a Command File. A guess is that in the future (NT5), an CMD file can also contain VBScript commands (the new scripting language for NT5), but in NT4 they are equal.
0
 

Author Comment

by:j-enos
ID: 1784731
Might be right, but I just want to see what others have to say...  Thanks.
0
 
LVL 5

Expert Comment

by:carmine
ID: 1784732
BlackMan is right, there is no difference.

As I understand it the CMD extension is a result of the OS2 support in NT.  Batch files in OS2 have the extension CMD rather than BAT.  Note that you can run into problems using the cmd extension, as you stated W95 doesn't understand it, so don't for example use it for the login script in a mixed environment.

I'd recommend that you stick to using BAT for maximum compatability.
0
 

Author Comment

by:j-enos
ID: 1784733
Dang- I was hoping there was some sort of functional difference between the two.  Oh well...  Blackman, if you submit an answer again it would enable me to credit you with the points.
0
 
LVL 7

Accepted Solution

by:
BlackMan earned 100 total points
ID: 1784734
There is no difference (yet). CMD is just what NT is calling a Command File. A guess is that in the future (NT5), an CMD file can also contain VBScript commands (the new scripting language for NT5), but in NT4 they are equal.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now