Re: .bat vs .cmd



> .bat == .cmd, according to the REGISTRY (wow, looked far for that one...)

It took me little time at all with David Candy's ReportClassName.vbs.

---------------------------
Report Class Name
---------------------------
File Extension .cmd
File Class cmdfile
File Description Windows NT Command Script

Files of .cmd will be listed in the File Types dialog box as Windows NT
Command Script.
---------------------------
OK
---------------------------

---------------------------
Report Class Name
---------------------------
File Extension .bat
File Class batfile
File Description MS-DOS Batch File

Files of .bat will be listed in the File Types dialog box as MS-DOS Batch
File.
---------------------------
OK
---------------------------

Retrieve the Class Name for a File Extension
http://www.kellys-korner-xp.com/regs_edits/ReportClassName.vbs

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:OU3vygKFGHA.1032@xxxxxxxxxxxxxxxxxxxx,
Shenan Stanley <newshelper@xxxxxxxxx> hunted and pecked:
> jda wrote:
>> Is there someone who can tell me the actual difference between
>> files with .bat and .cmd extensions other than .cmd will not run
>> under win9x systems. I have tried microsoft.com and a lot of
>> googleling but have not yet found an answer other than being
>> recommended to use .cmd when scripting for XP
>
> Just a file extension. Both are the same in Windows XP.
>
> .bat == .cmd, according to the REGISTRY (wow, looked far for that one...)
>
> .cmd is just "NT command line program" or something, while .bat is a
> "batch script" (it's just a name, they both do exactly the same.)
>
> Why use one over the other? Consistency with the features of the OS or
> compatibility with older OSes.
>
> --
> Shenan Stanley
> MS-MVP
> --
> How To Ask Questions The Smart Way
> http://www.catb.org/~esr/faqs/smart-questions.html

.



Relevant Pages

  • Re: Lost document When I Changed Its Name Please Help!
    ... those with a file extension associated with Word. ... > rename the document in Windows Explorer. ... >>to open it by double-clicking in an Exploring window. ...
    (microsoft.public.word.application.errors)
  • Re: File Extension, Program to use Problem!
    ... 2004 Windows MVP "Winny" Award ... >> associations that XP ships with. ... >> fileType = Specifies the file type to associate with the file extension ...
    (microsoft.public.windowsxp.general)
  • Re: Windows XP Media Center Edition problems
    ... Digital camera saves in be read by windows media center, ... What is the file extension on the video ...
    (microsoft.public.windows.mediacenter)
  • Re: Playing Music CDs
    ... I have not been able to rip these two disk ... I have looked at tracks on other CD's and able to see a file extension. ... rip two different CD that I have "Tim McGram-Let It Go" and the Windows ... "Windows Media Player encountered a problem while playing the file. ...
    (microsoft.public.windowsmedia.player)
  • Re: Need to hide a console window.
    ... I have a Windows NT Command Script (startWebLogic.cmd / CMD File) which I ... this newsgroup) you can set Run: Minimized on the Shortcut tab of the ...
    (microsoft.public.windowsxp.basics)