Solved

Difference between CMD and BAT files?

Posted on 1998-07-08
5
3,072 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

Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
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…

747 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

10 Experts available now in Live!

Get 1:1 Help Now