programming-examples/asp/More_Code_Snippets/This checks if a drive exists , in this case C and displays a message.asp
2019-11-18 14:25:58 +01:00

10 lines
205 B
Plaintext

<%
Dim objFSO, msg
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.DriveExists("C:") Then
msg = ("Drive exists.")
Else
msg = ("Drive doesn't exist.")
End If
Response.Write msg
%>