>>isn't there an internal basic statement like Dir, Kill, Name.
>>I needed it myself some time ago, I couldn't recall.
>
>There is a FileCopy method but don't forget that he wants to copy to the lpt1 prot.
>
>When the file has an associated extension (ex: .doc, .xls, ...), you can use the ShellExecute API command.
It also invokes the GDI; CopyFile() or shelling to XCOPY does not (COPY, being an internal command, requires that you actually invoke a command processor to handle the COPY operation, eg
COMMAND /C COPY /b prot lpt1:
, and depending on OS, you may or may not need the trailing :
CopyFile() avoids these issues.