|The net use command is a Windows XP command not a BASIC statement. It redirects the LPT1 or PRN port to the USB local printer previously shared and acts on the whole operating system environment.|
To share the local printer click START/Settings\Printers, select the printer, right click choosing Properties then click the Share sheet and select share giving a shared name (in my example USBPrint).
Open Notepad and type the following
@net use LPT1 \\%computername%\USBPrint /persistent:YES
Save as USBPrint.bat and copy/paste the saved file into the Startup Folder
\Documents and Settings\All Users\Start Menu\Programs\Startup Folder
Then reboot and you are done.
About to redirect the LIST command to a printer when starting your program from the prompt type after the program name > PRN (e.g. MyProg > PRN).
Be aware all screen output will be redirected to the printer.