In addition to what was said in previous answers:
The method with CTTY also supress error messages, like "file not found". The method presented by "the computer expert" does NOT supress error messages.
copy file1.dat file2.dat > nul
If, for instance, doesn't exist, an error message WILL be displayed. But:
CTTY NUL
copy file1.dat file2.dat
CTTY CON
That will supress any error messages.
DO NOT FORGET TO GIVE "CTTY CON"!!! If you end the batch file without passing that command, user won't be able to gain control of the computer.
PS: What sort of nickname is "the comptuter expert"? Wow, he must be really "VERY" expert...........
-- Secret_Doom - Leonardo Pignataro --
secret_doom@hotmail.com
www.batch.hpg.com.br