View Single Post
Join Date: Dec 2007
Posts: 2
Reputation: RWGBob is an unknown quantity at this point 
Solved Threads: 0
RWGBob RWGBob is offline Offline
Newbie Poster

Re: print to USB from Qbasic

 
0
  #7
Jun 7th, 2008
Originally Posted by paul2594 View Post
Thanks! i check it out but i think i found a solution and it was as i suspected with a little wrinkle thrown in that makes it easier. 1st - create a text file the with the SHELL command you can open wordpad with a /p and the file name and wordpad will open the file and send it to the default windows printer. i haven't developed the code yet so wish me luck.

Thanks for you help. paul
OPEN "O",1,"PRINT.TMP"
PRINT #1, "Just testing the code."
CLOSE 1
SHELL "C:\PATH\WORDPAD.EXE"

That's all there is to it.
Reply With Quote