1.

Solve : HELP unknown command?

Answer»

on command prompt i was playing around i typed this in ^BKFI^<^
command prompt replied saying this more?
what in the world did that mean!?
D:\>
D:\>^BKFI^<^
More?
More? n
'BKFI<' is not recognized as an internal or external command,
operable program or BATCH file.

D:\>
yup thats what happendIt is possible to extend a command over more than one line by using the continuation CHARACTER ^ as the last entry on a line.   You will then be prompted to enter further details, after More?

e.g. at the command prompt:
dir ^
More? *.bat

will LIST all .bat files in the current directory.

This feature allows one command line to be up to 8191 characters in TOTAL length. See KB830473



Code: [Select]C:\>dir ^
More? /B ^
More? *.ini
Settings.iniAnd many more combos:

Quote

dir ^
More? /b ^
More? /oe ^
More? *.vbs ^
More? *.ini ^
More? *.csv >> %temp%\eval.txt& type %temp%\eval.txt

parts.csv
conficker.ini
boot.ini
ndir.ini
evaluate.vbs
masht.vbs
msg.vbs
today.vbs

←C:\>

Thanks Dusty for the KB article.  KB830473
I think that if I need more chuff on one line, I will do the batch inside Windows 2000. The article says that that Windows 2000 can have up to 2047 characters on one line. Have not got to that point. Not yet.


Discussion

No Comment Found