Raku Land

Win32::DrivesAndTypes

github:ramiroencinas

Raku module - Provides a list of Win32 drives and drive types.

OS Supported:

Only Win32 by Native calls.

Installing the module

zef update
zef install Win32::DrivesAndTypes

Example Usage:

use v6;
use Win32::DrivesAndTypes;    

say "Drive Type";

for Win32_Drives() { 

	say $_ ~ "     " ~ Win32_DriveType($_) 
}

Win32_Drives() function

Returns a @list of Strings with detected drives (A..Z).

Win32_DriveType(Str) function

Accepts one string parameter with a letter drive (A..Z) and returns a string with the drive type that can be: