@echo off
echo ---------------------->ccc.txt
help ASSOC >>ccc.txt
echo ---------------------->>ccc.txt
help AT >>ccc.txt
echo ---------------------->>ccc.txt
help ATTRIB >>ccc.txt
echo ---------------------->>ccc.txt
help BREAK >>ccc.txt
echo ---------------------->>ccc.txt
help CACLS >>ccc.txt
echo ---------------------->>ccc.txt
help CALL >>ccc.txt
echo ---------------------->>ccc.txt
help CD >>ccc.txt
echo ---------------------->>ccc.txt
help CHCP >>ccc.txt
echo ---------------------->>ccc.txt
help CHDIR >>ccc.txt
echo ---------------------->>ccc.txt
help CHKDSK >>ccc.txt
echo ---------------------->>ccc.txt
help CHKNTFS >>ccc.txt
echo ---------------------->>ccc.txt
help CLS >>ccc.txt
echo ---------------------->>ccc.txt
help CMD >>ccc.txt
echo ---------------------->>ccc.txt
help COLOR >>ccc.txt
echo ---------------------->>ccc.txt
help COMP >>ccc.txt
echo ---------------------->>ccc.txt
help COMPACT >>ccc.txt
echo ---------------------->>ccc.txt
help CONVERT >>ccc.txt
echo ---------------------->>ccc.txt
help COPY >>ccc.txt
echo ---------------------->>ccc.txt
help DATE >>ccc.txt
echo ---------------------->>ccc.txt
help DEL >>ccc.txt
echo ---------------------->>ccc.txt
help DIR >>ccc.txt
echo ---------------------->>ccc.txt
help DISKCOMP >>ccc.txt
echo ---------------------->>ccc.txt
help DISKCOPY >>ccc.txt
echo ---------------------->>ccc.txt
help DOSKEY >>ccc.txt
echo ---------------------->>ccc.txt
help ECHO >>ccc.txt
echo ---------------------->>ccc.txt
help ENDLOCAL >>ccc.txt
echo ---------------------->>ccc.txt
help ERASE >>ccc.txt
echo ---------------------->>ccc.txt
help EXIT >>ccc.txt
echo ---------------------->>ccc.txt
help FC >>ccc.txt
echo ---------------------->>ccc.txt
help FIND >>ccc.txt
echo ---------------------->>ccc.txt
help FINDSTR >>ccc.txt
echo ---------------------->>ccc.txt
help FOR >>ccc.txt
echo ---------------------->>ccc.txt
help FORMAT >>ccc.txt
echo ---------------------->>ccc.txt
help FTYPE >>ccc.txt
echo ---------------------->>ccc.txt
help GOTO >>ccc.txt
echo ---------------------->>ccc.txt
help GRAFTABL >>ccc.txt
echo ---------------------->>ccc.txt
helphelp >>ccc.txt
echo ---------------------->>ccc.txt
help IF >>ccc.txt
echo ---------------------->>ccc.txt
help LABEL >>ccc.txt
echo ---------------------->>ccc.txt
help MD >>ccc.txt
echo ---------------------->>ccc.txt
help MKDIR >>ccc.txt
echo ---------------------->>ccc.txt
help MODE >>ccc.txt
echo ---------------------->>ccc.txt
help MORE >>ccc.txt
echo ---------------------->>ccc.txt
help MOVE >>ccc.txt
echo ---------------------->>ccc.txt
help PATH >>ccc.txt
echo ---------------------->>ccc.txt
help PAUSE >>ccc.txt
echo ---------------------->>ccc.txt
help POPD >>ccc.txt
echo ---------------------->>ccc.txt
help PRINT >>ccc.txt
echo ---------------------->>ccc.txt
help PROMPT >>ccc.txt
echo ---------------------->>ccc.txt
help PUSHD >>ccc.txt
echo ---------------------->>ccc.txt
help RD >>ccc.txt
echo ---------------------->>ccc.txt
help RECOVER >>ccc.txt
echo ---------------------->>ccc.txt
help REM >>ccc.txt
echo ---------------------->>ccc.txt
help REN >>ccc.txt
echo ---------------------->>ccc.txt
help RENAME >>ccc.txt
echo ---------------------->>ccc.txt
help REPLACE >>ccc.txt
echo ---------------------->>ccc.txt
help RMDIR >>ccc.txt
echo ---------------------->>ccc.txt
help SET >>ccc.txt
echo ---------------------->>ccc.txt
help SETLOCAL >>ccc.txt
echo ---------------------->>ccc.txt
help SHIFT >>ccc.txt
echo ---------------------->>ccc.txt
help SORT >>ccc.txt
echo ---------------------->>ccc.txt
help START >>ccc.txt
echo ---------------------->>ccc.txt
help SUBST >>ccc.txt
echo ---------------------->>ccc.txt
help TIME >>ccc.txt
echo ---------------------->>ccc.txt
help TITLE >>ccc.txt
echo ---------------------->>ccc.txt
help TREE >>ccc.txt
echo ---------------------->>ccc.txt
help TYPE >>ccc.txt
echo ---------------------->>ccc.txt
help VER >>ccc.txt
echo ---------------------->>ccc.txt
help VERIFY >>ccc.txt
echo ---------------------->>ccc.txt
help VOL >>ccc.txt
echo ---------------------->>ccc.txt
help XCOPY >>ccc.txt
FOR /F ["options"] %variable IN (file-set) DO command [command-parameters]
FOR /F ["options"] %variable IN ("string") DO command [command-parameters]
FOR /F ["options"] %variable IN ('command') DO command [command-parameters]
或者,如果有 usebackq 选项:
FOR /F ["options"] %variable IN (file-set) DO command [command-parameters]
FOR /F ["options"] %variable IN ("string") DO command [command-parameters]
FOR /F ["options"] %variable IN ('command') DO command [command-parameters]