Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: -e on windows giving error

by runrig (Abbot)
on Nov 17, 2011 at 23:13 UTC ( #938699=note: print w/ replies, xml ) Need Help??


in reply to -e on windows giving error

Maybe use Win32::DriveInfo?? (or, from CB, SetErrorMode() in Win32API::File)


Comment on Re: -e on windows giving error
Re^2: -e on windows giving error
by Rudolf (Monk) on Nov 17, 2011 at 23:17 UTC
    well I am using activePerl, and whenever a drive does not exist it causes the popup each time untill it gets to the drive that does exist. and yeah I will loop it haha, thanks I am trying to use SetErrorMode() from Win32API::File but I keep getting the error of undefined subroutine at the function call..
      Either use the fully-qualified name of the function, or import it in the use statement.
      # Either this: use Win32API::File; my $uOldMode = Win32API::File::SetErrorMode( $uNewMode ); # or this: use Win32API::File qw( SetErrorMode ); my $uOldMode = SetErrorMode( $uNewMode );

      I presumed you neither imported SetErrorMode nor used its full name?

      use Win32API::File qw( SetErrorMode SEM_NOOPENFILEERRORBOX ); SetErrorMode( SetErrorMode(0) | SEM_NOOPENFILEERRORBOX );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://938699]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-10-01 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (41 votes), past polls