The registry is a nightmare so beware...use Win32::TieRegistry; $printerKey= $Registry->{"HKEY_LOCAL_MACHINE\\System\\CurrentControlSe +t\\Control\\Print\\Printers\\"} or die "Can't read Printers key: $^E\n"; @printers= keys( %{$printerKey} ); foreach $printer (@printers) { print $printerKey->{$printer."\\Name"}." ". $printerKey->{$printer."\\Printer Driver"}." ". $printerKey->{$printer."DsSpooler\\serverName"}; }
In reply to Re: Printers (NT)
by t0mas
in thread Printers (NT)
by Kevman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |