Find out the computer name

poli13
08-25-2004, 11:19 AM
Hi there,

I'm writing a program that will capture the printers installed on the computer where the program is running. I know how to get the printer names, but how can I find out the computer name using VB code?

Thanks,
poli

P.S. btw, the system is part of a domain and the OS is Win2k, XP, or 2003 server.

00100b
08-25-2004, 11:21 AM
Try the GetComputerName API call.

poli13
08-25-2004, 11:45 AM
Thank you, that did the trick.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum