Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Win32::FileOp instead of netuse

by ggoebel (Sexton)
on Mar 29, 2013 at 13:30 UTC ( #1026148=note: print w/replies, xml ) Need Help??

in reply to Re: Win32::FileOp instead of netuse
in thread Windows Net Use

Can you post your code? It would help to see which line the error message is associated with.

When I cut and paste my code snippet into a script and execute it, I get:

E => \\spsrv_print\e


...this is with Strawberry Perl 5.16.2 on Win7x64.

Replies are listed 'Best First'.
Re^3: Win32::FileOp instead of netuse
by Anonymous Monk on Apr 01, 2013 at 05:46 UTC

    I have used the same script as below:

    use strict; use warnings; use Win32::FileOp; my %drive = Mapped or die $^E; for my $key (sort keys %drive) { print "$key = $drive{$key}\n"; } OUTPUT:This network connection does not exist at line 5.

    OS:Win2008 R2 Server Perl Version:This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-thread

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1026148]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2017-11-25 08:10 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (355 votes). Check out past polls.