Hello Linda,
03 Nov 99 13:35, Linda Proulx wrote to All:
LP> What is a cmd file & what is the difference between it & an exe file?
A .cmd file is a batch file for OS/2. A .bat file is a batch file for DOS.
A batch file is read, interpreted and executed by the command processor
(CMD.EXE in OS/2 sessions, COMMAND.COM in DOS sessions, resp. 4OS2 and 4DOS
when those are installed).
A REXX file is a .CMD file starting with a comment (for example '/* */' or '/*
comment */') starting at the first column at the first row, such a file passes
the command processor in the OS/2 environment to the REXX interpreter. When
the .CMD file does not start with a comment at the first column on the first
row then it's a batch file, for example a /* starting at the second column on
the first row causes the command processor to issue an error message, saying
that this is a unknown command since it's a batch file and not a REXX file.
The same when the .CMD file starts with a '//* */' starting in the first
column first row. REXX is a beautiful language, very useful, very flexible,
can be used as a scripting language for programs written for this, can even
replace batch files. A REXX file is not a batch file, REXX is a programming
language. REXX is the easiest programming language.
Greetings -=Eddy=- email: eddy.thilleman@net.hcc.nl
... "Nobody will ever need more than 640k RAM!" -- Bill Gates, 1981
--- GoldED/2 3.0.1
* Origin: Windows98 is a graphic DOS extender (2:500/143.7)
|