Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copying problem

Status
Not open for further replies.

qbasicking

Programmer
Aug 19, 2001
628
US
I was copying a BINARY file i had made bit-by-bit, but then I realized that using SHELL "copy..." was 5-10x faster, but now my screen says "1 File(s) Copied" does anybody know how to prevent this from happening, at the time I am just switching the video pages, but it seems like a bit of overkill
 
Forgive me if I'm wrong (I've quit using a QBasic almost 8 years ago) but i thing that using

Shell "COPY c:\filename.bin c:\Temp\Filename.bin > NULL"

will prevent DOS from actually printing anything on screen.

TIP: You can use any of the DOS standard device names to redirect the SCREENs outputs to any other port (COM1: COM2: LTP1: NULL or even another FILE)

Using the command Shell "DIR C:\*.* /s /b > C:\HDD.C"

will record all files in your C: and store them in the file HDD.C

Have fun & let me know what happens.

ARISTON Engineering Ltd
Michael Vezyrgianopoulos
R&D Manager
 
You must be thinking of redirecting stdout to the NIL: device, as in:

DIR >NIL:
 
See thread314-404524. The code seems to copy files somewhat faster than the DOS copy, without the overhead of shelling to the command interpreter.
vcn.gif

Do no harm.​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top