Solved

Difference between CMD and BAT files?

Posted on 1998-07-08
5
3,121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…

737 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