programming-examples/asp/More_Code_Snippets/This checks if a drive exists , in this case C and displays a message.asp

10 lines
205 B
Plaintext
Raw Permalink Normal View History

2019-11-18 14:25:58 +01:00
<%
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
%>