MSFN Forum: CMD vs Bat file... - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CMD vs Bat file... Rate Topic: -----

#1 User is offline   some1 

  • Blah Face
  • Pip
  • Group: Members
  • Posts: 63
  • Joined: 24-September 06

Posted 25 January 2007 - 04:10 PM

ok what the hell is the differnece!?
ive always used bat files
here is the first time i have seen a cmd file....


#2 User is offline   jdoe 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 314
  • Joined: 02-May 04

Posted 25 January 2007 - 04:40 PM

some1,

.bat and .cmd are batch files but .cmd only runs on NT and for 9x you must use .bat

Each 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.

#3 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 11,208
  • Joined: 09-September 01
  • OS:Windows RT
  • Country: Country Flag

Posted 25 January 2007 - 04:58 PM

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.

#4 User is offline   os2fan2 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 417
  • Joined: 09-September 04

Posted 26 January 2007 - 01:52 AM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy