What is the difference between CMD and BAT file ?



Hi,

Could anyone give me some advice on when to use CMD and BAT file ?

This is because we are going to run some scripts to delete the shortcuts in
desktop. We already got the command but some fellow says it should be with
BAT extension and some with CMD one.

Your advice is sought.

John


.



Relevant Pages

  • Re: EXEC() Runs process in background
    ... > do a start, run, cmd to get a cmd shell. ... I think you can get the batch file to wait for ... >> Open up a command window and run your bat file in it. ...
    (comp.lang.php)
  • Re: Running DOS and Batch Programs on XP
    ... try put the wthpro.exe in the "Cmd line:" box ... David wrote: ... instead of executing the Webster2 bat file. ... R-click that, pick Properties, then the Program tab. ...
    (microsoft.public.windowsxp.general)
  • Re: Network Copy Batch file
    ... Instead of using a .bat file use a .cmd file. ... To test the file (.bat or ..cmd) open a cmd prompt and run the file from there. ... I've tried messing around with the commands in CMD, ... You can access your network drives as if they were local drives, ...
    (microsoft.public.windowsxp.general)
  • Re: System call
    ... either execute the command processor and pass your .bat filename as a parameter, ... And it is what OP got - his bat file was executed by CMD and he got the .bat ... And I KNOW I know more about proper security measures than you do. ...
    (comp.lang.php)
  • Re: System call
    ... And it is what OP got - his bat file was executed by CMD and he got the .bat ... But it has nothing to do with PHP itself. ... when I can't "execute" .bat file from PHP. ...
    (comp.lang.php)