Option Strict On Public Module CurDriveFunction Public Sub Main() Console.WriteLine("The current drive is {0}.", Left(CurDir(), 1)) End Sub End Module
The current drive is C.