some1 Posted January 25, 2007 Posted January 25, 2007 ok what the hell is the differnece!?ive always used bat fileshere is the first time i have seen a cmd file....
jdoe Posted January 25, 2007 Posted January 25, 2007 some1,.bat and .cmd are batch files but .cmd only runs on NT and for 9x you must use .batEach version of Windows have their supported command-lines so a .bat or a .cmd may not work on each Windows version. It depends on the features of a specific Windows.Maybe there is others distinctions but I only know these.
cluberti Posted January 25, 2007 Posted January 25, 2007 There are differences that may be irrelevant, or huge, depending on what the script does.Basically, the .cmd extension is the better choice for Windows NT-based OSes, because the .cmd extension is associated with the cmd.exe program, which uses a native 32-bit command environment. Scripts that use the .bat extension are associated with the 16-bit program command.exe, and they will run in the NT Virtual DOS Machine (NTVDM) instead of the native 32-bit cmd.exe program, which is less reliable than the cmd.exe environment.
os2fan2 Posted January 26, 2007 Posted January 26, 2007 It used to be that .BAT files were passed to command.com to process from the start, while .CMD files are processed from CMD.EXE directly (without loading the NTVDM environment first),In any case, if you use 4NT to run the files, this distinction is irrelevant (since 4nt processes bat files directly), but you can't use EXTPROC or rexx scripting in BAT files, but you can use these in CMD files.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now