
HELP !! Copying files to Lpt1 in VB 4.0
reservoirs of wisdom:
Quote:
>How can I copy a file from disc directly to the Lpt1-port in Visual Basic
>4.0. (similar to the Dos-command: "COPY /B sourcefile LPT1).
1: Shell out to DOS and ask it to do it
x% = Shell("copy /b sourcefile LPT1")
2: open the file, read it and print it to LPT1
Open "sourcefile" for input as #1
open "LPT1" for output as #2
do while not eof(1)
line input #1, t$
print #2, t$
loop
close
--
Newbiehood is not a period of time, it's a way of life.
http://www.sn.no/~balchen
ftp://ftp.sn.no/user/balchen/