Command Extensions?

W

William Hymen

I did. I still don't know what the heck command extensions
are. Please give *one* example.
Thanks
 
C

Clay Calvert

I did. I still don't know what the heck command extensions
are. Please give *one* example.
Thanks

For /? has a pretty good example.

Without extensions FOR is not able to use the /F, /D, /R or any
switches for that matter. It can only do simple sets and/or wildcards
which regular DOS and the Win9x command.com can do, such as:

for %%a in (red blue green) echo The color %%a
for %%a in (*.txt win?.ini) do print %%a

With command extensions, the FOR command can count, (with the /L
switch), read from a file, etc. (with /F) and recurse subdirectories(
with /R), etc.

HTH

Clay Calvert
(e-mail address removed)
Replace "W" with "L"
 
J

Joseph Acosta

A snippet from the output of cmd /?

The command extensions involve changes and/or additions to the following
commands:

DEL or ERASE
COLOR
CD or CHDIR
MD or MKDIR
PROMPT
PUSHD
POPD
SET
SETLOCAL
ENDLOCAL
IF
FOR
CALL
SHIFT
GOTO
START (also includes changes to external command invocation)
ASSOC
FTYPE

***************** To get specific details, type commandname /? to view the
specifics. ***********
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top