.CMD - File Extension for Windows Command Files

Q

What is CMD? CMD, short name for Command, is used as the file extension for Windows/DOS command batch files. .CMD files are text files that can be opened by Notepad or any text editors. See the sample .CMD file included below.

✍: FYIcenter.com

A
if path = '-r' then do /* recursive call */ subdir = filespec('path', dir) if subdir \= '\' then do subdir = left(subdir, length(subdir)-1) call runit name path filespec('drive', dir) || subdir end end /* Look for the file and run it */ if right(dir, 1) \= '\' then dir = dir || '\' rcfile = stream(dir || name, 'c', 'query exists') if rcfile \= '' then interpret 'call "' || rcfile || '"' return

.CMD Command sample file: Click sample.cmd to download.

Since .CMD text files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.

For for information on how to use .CMD command files, see links below:

2012-07-10, 3729👍, 0💬