Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1284
  • Last Modified:

batch vs CMD

Whats the diff between *.bat and *.CMD and when would you use one over the other
0
CMILLER
Asked:
CMILLER
  • 3
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
NT-based Operating Systems can use .cmd.  9x based OSs must use .BAT.  There IS a difference, but a very tiny one - unfortunately I don't recall what it is, but I believe it had to do with the interpretation of Command Extensions.  (This difference was likely not by design and more of a bug - I'm all but convinced they were supposed to be interpreted identically).

For general info on the NT Command Shell and Shell Scripting, you might want to check out: http://www.microsoft.com/technet/prodtechnol/winntas/deploy/shellscr.mspx

Personally, I almost always use .cmd
0
 
CMILLERAuthor Commented:
On my logon scripts ( all clients are XP ) should I use CMD
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
If all clients are XP, then I'd use .CMD.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I'd suggest leaving the question open a while and see what others might say.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now