SIMPLE QUESTION : SIMPLE ANSWER? 
Author Message
 SIMPLE QUESTION : SIMPLE ANSWER?

I am trying to copy a binary file to a printer port using simple OS
commands.  In gqbasic or QBasic, I could simply do the following :

SHELL "COPY /B FILE.PRN LPT1" or even
SHELL "COPY /B FILE.PRN \\SERVER\SHARED_PRINTER"

In VB, I want something like:

  FileCopy Source, Target

but keep getting errors.

The files I am copying are quite large ( 50mb ) and I do not want to
have to do a
 DO : READ byte_block : WRITE byte_block : UNTIL EOF(infile)

Anyone know of an elegant solution?

Thanks in advance

Do, or Do Not.There is no Try.



Fri, 14 Sep 2001 03:00:00 GMT  
 SIMPLE QUESTION : SIMPLE ANSWER?

Quote:

>I am trying to copy a binary file to a printer port using simple OS
>commands.  In gqbasic or QBasic, I could simply do the following :

>SHELL "COPY /B FILE.PRN LPT1" or even
>SHELL "COPY /B FILE.PRN \\SERVER\SHARED_PRINTER"

How about

X% = SHELL ("COPY /B FILE.PRN LPT1" , 1)
Or
X% = SHELL ("COPY /B FILE.PRN \\SERVER\SHARED_PRINTER", 1)

Huh?

VB has the Shell command.... :-)

Ciao, Pipol!
Piero



Sat, 15 Sep 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. SIMPLE QUESTION : SIMPLE ANSWER?

2. Simple Question...simple answer???

3. SIMPLE QUESTION, please SIMPLE ANSWER

4. HELP! simple question need simple answer

5. HELP! simple question need simple answer

6. HELP! simple question need simple answer

7. A simple Mail problem in search for a equally simple answer

8. Simple Question: Assigning Icon to an App : Simple Question

9. Anyone want answer a simple question???

10. simple SQL question... please answer

11. Simple Question, how about the answer?

12. Simple question...can't find answer....

 

 
Powered by phpBB® Forum Software