2013-11-30T08:41:22 GwenDragon
2013-11-30T08:41:22 GwenDragonMit Device::USB könntest du nur die USB-Devices abfragen.
2013-11-30T08:41:22 GwenDragon
2013-11-30T08:41:22 GwenDragon
QuoteDatabase was generated on Tue, 03 Dec 2013 09:36:43 GMT
Running install for module 'Win32API::Resources'
Running make for B/BS/BSTURNER/Win32API-Resources-0.06.tar.gz
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/B/BS/BST...
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/B/BS/BST...
Checksum for C:\strawberry\cpan\sources\authors\id\B\BS\BSTURNER\Win32API-Resources-0.06.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
............................................................................DONE
Package seems to come without Makefile.PL.
(The test -f "C:\strawberry\cpan\build\BSTURNER-705TYk\Makefile.PL" returned false.)
Writing one on our own (setting NAME to Win32APIResources)
CPAN.pm: Building B/BS/BSTURNER/Win32API-Resources-0.06.tar.gz
Writing Makefile for Win32APIResources
Writing MYMETA.yml and MYMETA.json
cp Resources.pm blib\lib\Resources.pm
BSTURNER/Win32API-Resources-0.06.tar.gz
C:\strawberry\c\bin\dmake.exe -- OK
Running make test
'No tests defined for Win32APIResources extension.'
BSTURNER/Win32API-Resources-0.06.tar.gz
C:\strawberry\c\bin\dmake.exe test -- OK
Running make install
Installing C:\strawberry\perl\site\lib\Resources.pm
Appending installation info to C:\strawberry\perl\lib/perllocal.pod
BSTURNER/Win32API-Resources-0.06.tar.gz
C:\strawberry\c\bin\dmake.exe install UNINST=1 -- OK
1 2 3 4 5 6 7 8
#!/usr/bin/perl use strict; use warnings; use Win32API::Resources; use 5.010; my @List = Win32API::Resources::GetDrives('DRIVE_REMOVABLE'); say join("\n",@List);
QuoteCan't locate Win32API/Resources.pm in @INC (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at test_lw.pl line 4.
BEGIN failed--compilation aborted at test_lw.pl line 4.
1 2 3 4 5
use Win32::ErrorMode qw( :all ); my $error_mode = GetErrorMode(); SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX); system "program_that_would_normal_produce_an_error_dialog.exe"; #bzw hier dein Code für die Laufwerke