this might work on linux and windows because it only uses internal commands.
Code: (Select All)
On Error GoTo nodrive
For drive = 0 To 25
drive$ = Chr$(65 + drive) + ":"
checkdrive = 1
ChDir drive$
If checkdrive Then Print drive$; " is available"
Next drive
On Error GoTo 0
End
nodrive:
checkdrive = 0
Resume Next