Page 1 of 2
Printing from a DOS program in guest with Laser?
Posted: 7. Mar 2011, 15:03
by raceware
I have Win XP guest set up on my Win 7 Pro 64Bit host. On my guest I use an Old Dos program allot from my XP guest & do alott of printing from it all worked great with several HP deskjet I had even an HP C4600 all in one, could print everything I needed usin "Print Pooling" option under Printer propeties but now I have a Canon MF 4350D all in one
Laserjet & even tried an HP 1006 Laserjet also but all the Laserjets so far I can't get to print from the Dos Program. (First Choice is name of program Dos). I still have Print Pooling selected. Any hints on getting the Laserjets to work? (I am using VB 4.04)
Thanks
Raceware
Re: Printing from a DOS program in guest with Laser?
Posted: 7. Mar 2011, 19:42
by stefan.becker
There is workaround: Virtual lpt1.
Share the printer on the host.
In Dos use this share with "netuse lpt1 \\host_ip\sharename".
Then DOS-Apps could print to lpt1.
Re: Printing from a DOS program in guest with Laser?
Posted: 8. Mar 2011, 15:17
by raceware
Can you elaborate on exactly how I do the Virtual LPT1? Do I simply open a Dos window in my Guest Win Xp & type the command you suggested? Will at that point the line will be embedded so everytime I boot up the line will activate? How exactly do I setup the "Share" with the host from my Guest OS?
Thanks,
Raceware
Re: Printing from a DOS program in guest with Laser?
Posted: 8. Mar 2011, 15:22
by stefan.becker
Type the command "net use ..." in a DosBox.
Re: Printing from a DOS program in guest with Laser?
Posted: 9. Mar 2011, 14:33
by raceware
Thanks for the input but when I issued the command in a Dos Window it states"netuse is not a regonized internal or external command". Here's the procedure I did Opened VB & ran Guest OS opened a Dos Window went to C:\ & typed the command
netuse lpt1 \\host_ip\sharename when I got the message . ANy Help is appreciated.
Thanks
Raceware
Re: Printing from a DOS program in guest with Laser?
Posted: 9. Mar 2011, 14:34
by stefan.becker
Sorry, typo.
"net use" with blank.
net is the command, use a parameter.
Re: Printing from a DOS program in guest with Laser?
Posted: 9. Mar 2011, 15:08
by raceware
Back Again! Don't shoot the messenger! I typed the command "net use lpt1\\host_ip\\sharename" now I get the error " network cannot be found". I know I'm not doing something right. Please don't take for granted I know everything. Do I have to create a network in my guest OS & name it then use that name in place of "Sharename"? If so can you give me step by step instructions on how to accomplish this? I certainly don't want to bug some one trying to help me but I'm thick !
Thanks
Again
Raceware
Re: Printing from a DOS program in guest with Laser?
Posted: 9. Mar 2011, 15:16
by stefan.becker
Sharename means the name of the printer. On the host you must share the printer. Thats the name used here.
And another blank is needed between "lpt1" and "\\host_ip".
And for host-ip choose the ip-adress from the host.
Re: Printing from a DOS program in guest with Laser?
Posted: 9. Mar 2011, 15:19
by vbox4me2
Re: Printing from a DOS program in guest with Laser?
Posted: 9. Mar 2011, 22:11
by raceware
Have no idea what I'm doing, I Selected both host & Guest OS to share the printer & named them both CanonMF4320. Looked under "Virtual Host only Network" in "Network & Sharing center" in Win 7 host and retrived a IPv4 Ip address, went in to guest OS Win XP and opened Dos Window to C: & Typed : "net (space) use(space) lpt1(space) \\192.168.56.1\\CanonMF4320" (with out "()" &" "" marks). Then Got "error 66 , Network Resource type is not correct". I was unsure where to get IP address 1), and 2)named both Host & Guest as CanonMF4320, 3) don't know if thats right or nott , or 4)even If I was supposed to create a Network Connection or not! I need specific "Idiot Proof Instructions" exactly where & how in each Host & Guest OS where & how to retrive all this information & embed said info & a copy of "Networking in VB for idiots" instructions. What say ye??????????????????????
Thanks Again & Again & Again!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Raceware
Re: Printing from a DOS program in guest with Laser?
Posted: 9. Mar 2011, 23:08
by vbox4me2
Only set sharing from the Host, use Bridge network mode, then try the net use from the Guest.
Re: Printing from a DOS program in guest with Laser?
Posted: 10. Mar 2011, 14:40
by raceware
Get the same error: "The network resource is not correct". I open VB "Settings" then "Network" selected "Bridge"
Under the Bridged showed a Realtek (nothing other in pull down menu) looked under "Advanced" five other options did not check "cable connected" left advanced at default then started Win XP guest opened dos window then typed:
net use lpt1 \\192.168.56.1\\CanonMF4320 when I got the error. this was all after setting just the host printer to sharing only. Still opened for suggestions? Have I the got the right IP address from the right location?, I know I named the Printer sharing name to CanonMF4320.
Raceware
Re: Printing from a DOS program in guest with Laser?
Posted: 10. Mar 2011, 14:49
by stefan.becker
You must know the ip-adress from the host. No idea if its correct.
Re: Printing from a DOS program in guest with Laser?
Posted: 10. Mar 2011, 15:24
by raceware
I tried to attach a JPG to this post so you can see where I got the IP address from so in your opinion it was the right location or not. Let me know if you can view it or not.
Raceware
Re: Printing from a DOS program in guest with Laser?
Posted: 10. Mar 2011, 16:43
by vbox4me2
It looks correct, firewall from the Host off? I'm not sure if windows file and printer sharing works over a Host-only link, Bridge works fine, is windows file and printer sharing installed on the Host under adapter settings ? and ticked for the host-only adapter ?