tart has asked for the wisdom of the Perl Monks concerning the following question:
Hi All,
In my script I am trying to locate a file in windows drive.
As file could be in any drive so I am looping each letter such as,
foreach my $drive("a".."z") { if(-e "$drive:\\appcmd.exe") {
When 'a:' drive dose not exists in Windows or its floppy
drive and not accessible windows complains by sending warning message,
Windows - No Disk
Exception Processing Message c0000013 Parameters 75b6bf7c 4 75b6bf7c 75b6b7c
Can Any one suggest me better way to do this check? You
might suggest that I should use Win32::DriveInfo but for
some technical difficulties I can can not use it.
Please suggest if you have any ideas.Thanks,
Regards,
tart
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Checking Windiows Drive exception.
by Corion (Patriarch) on Feb 03, 2012 at 07:48 UTC | |
|
Re: Checking Windiows Drive exception.
by Anonymous Monk on Feb 03, 2012 at 07:52 UTC | |
|
Re: Checking Windiows Drive exception.
by rovf (Priest) on Feb 03, 2012 at 12:31 UTC | |
|
Re: Checking Windiows Drive exception.
by Marshall (Canon) on Feb 03, 2012 at 20:15 UTC | |
by tart (Beadle) on Feb 04, 2012 at 01:32 UTC |