Solved

Difference between CMD and BAT files?

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
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). …
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

777 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