I love nul, but here's another way to do it...

by (Login The-Universe)
Admin

One is to start another window to do the copying, and hide it by running it minimized:

CLS
OPEN "file123.txt" FOR OUTPUT AS #1: PRINT #1, "XCOPY Demo": CLOSE #1
SHELL "cmd /c start /min xcopy file123.txt /Q /Y c:\qb64\"
SLEEP 1: REM Needed to make sure shell gets done, first.
OPEN "c:\qb64\file123.txt" FOR INPUT AS #1
LINE INPUT #1, a$
PRINT a$
CLOSE #1
KILL "file123.txt"
KILL "c:\qb64\file123.txt"

--------------------------------------

Pete



    
This message has been edited by The-Universe on Jan 20, 2010 10:08 PM

Posted on Jan 20, 2010, 10:04 PM

Respond to this message   

Return to Index


Response TitleAuthor and Date
* Your a murderer! You KILLed two files! on Jan 20
 I could have just as easily SHELL DELled them, if that would make you happy. on Jan 20