in reply to Re: Win32::Printer::Enum - can't find network printer
in thread Win32::Printer::Enum - can't find network printer

ah! thanks for the info.

#!/usr/bin/perl -w use strict; use Win32::Printer::Enum; use Win32::Printer::Enum qw( Jobs ); my $server = 'sfile'; my @printer = Printers($server); my $count_printer = @printer; print $count_printer;

gives 0
still doesn't find network printer... this runs on win7..hm any clue is welcome

Replies are listed 'Best First'.
Re^3: Win32::Printer::Enum - can't find network printer
by Corion (Patriarch) on Aug 27, 2010 at 14:20 UTC

    Looking at the underlying Win32 API method EnumPrinters, you could try passing in the string

    'Print Provider!!\\Machine'

    to search the machine \\Machine for printers.

    In your case, that could be:

    my @printer = Printers("Print Provider!!\\\\$server");
      thanks ahead
      my @printer = Printers("Print Provider!!\\\\$server");
      didn't work but
      my @printer = Printers("\\\\$server");

      works !
      love and peace~

Re^3: Win32::Printer::Enum - can't find network printer
by Anonymous Monk on Aug 27, 2010 at 14:23 UTC
    Try '//sfile'? Also check your event viewer logs for hints