Re: Is there any module to get the cdrom infomation?
- From: O <owinsloe@xxxxxxxxx>
- Date: Tue, 29 Jul 2008 14:11:47 -0700 (PDT)
On Jul 29, 2:35 pm, "lofenee" <lofe...@xxxxxxxxx> wrote:
I want to check whether a cdrom node under /dev actually exists.
Win32::AdminMisc
GetDrives([$Type])
This will return an array of drive roots. If no parameters are passed
then the list will be all drives (cdroms, floppy, fixed, net, etc.).
If you specify $Type the list will only contain drive roots that are
of the specified type.
The types are:
DRIVE_FIXED
DRIVE_REMOVABLE
DRIVE_REMOTE
DRIVE_CDROM
DRIVE_RAMDISK
Example:
@Drives = Win32::AdminMisc::GetDrives();
@CDROMs = Win32::AdminMisc::GetDrives( DRIVE_CDROM );
.
- Follow-Ups:
- Re: Is there any module to get the cdrom infomation?
- From: Jens Thoms Toerring
- Re: Is there any module to get the cdrom infomation?
- Prev by Date: Re: Append newline to files
- Next by Date: Re: Is there any module to get the cdrom infomation?
- Previous by thread: Re: Is there any module to get the cdrom infomation?
- Next by thread: Re: Is there any module to get the cdrom infomation?
- Index(es):