Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    
    ...
    my $drives = GetDrives( DRIVE_FIXED );
    
    print $drives . "\n";
    
  2. or download this
    DRIVE_FIXED      - hard drive
    DRIVE_REMOVABLE  - floppy
    DRIVE_REMOTE     - network drive
    DRIVE_CDROM      - cdrom
    DRIVE_RAMDISK    - emulated drive in memory
    
  3. or download this
    GetDriveType( DRIVE ) - returns the drives type
    GetDriveSpace ( DRIVE ) - returns the drives space
    ...
       ------------------
       Volume      Volume Label
       Serial      Serial number of drive
    
  4. or download this
    #!/usr/bin/perl -w
    
    ...
            print "Drive $i exists\n";
        }
    }