Thank you Jenni, but I already have this code and it's fine for "net using"
lpt's for legacy applications (e.g. DOS apps). However, I want to make the
printer connection for a 32-bit 95 or NT application.
Two examples are listed below, but I have no idea how to make the calls in
VB!
http://support.microsoft.com/support/kb/articles/Q152/5/51.asp
http://support.microsoft.com/support/kb/articles/Q147/2/02.ASP
Any light you could shed on this would be most illuminating!
Thanks in advance for your help,
Tim Gallivan
Quote:
> Take a look at the Wnet.zip L2 example on
> http://matthart.com/vbhelp/vbsamp.htm
> Hope it helps,
> -J
> > I am trying to find the syntax (and hopefully an example!) for a VB call
to
> > AddPrinterConnection, as I need to write code that programatically
connects
> > to printers on NT4 and Win95/98 workstations.
> > Thanks in advance,
> > Tim Gallivan