Snippets

Here is your code snippet

Code


Drive exists

This checks if a drive exists , in this case C and displays a message

<%
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
%>