Re: Help finding if drive mounted
From: sree (sree_at_techneers.com)
Date: 04/07/04
- Previous message: Bob Smedley: "Help finding if drive mounted"
- In reply to: Bob Smedley: "Help finding if drive mounted"
- Next in thread: Bob Smedley: "Re: Help finding if drive mounted"
- Reply: Bob Smedley: "Re: Help finding if drive mounted"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Apr 2004 13:19:38 -0400
Make sure you have installed the latest VBscript engine on your server - you
can get it from http://msdn.microsoft.com/scripting
"Bob Smedley" <rsmedley@nospam.boyleengineering.com> wrote in message
news:%234WejKLHEHA.2036@TK2MSFTNGP12.phx.gbl...
> I want to be able to set a session variable depending upon whether the
> user's computer has a a valid drive mapped to a particular drive letter. I
> don't care what is mapped there, just that a drive exists for that drive
> letter.
>
> I have tried the following code in the head of the htm file and I get a
> "ActiveX component can't create object: "Scripting.FileSystemObject""
error.
>
> Any help as to how to do this would be appreciated.
>
> thanks
> ---------------------------------------------------------------------
> <script language="VBScript" type="text/VBScript">
> Dim fso
> Set fso = CreateObject("Scripting.FileSystemObject")
>
> If fso.DriveExists("D") = True Then
> session("uStatDrive") = "YES"
> Else
> session("uStatDrive") = "NO"
> End If
>
> Set fso = Nothing
> </script>
>
>
- Previous message: Bob Smedley: "Help finding if drive mounted"
- In reply to: Bob Smedley: "Help finding if drive mounted"
- Next in thread: Bob Smedley: "Re: Help finding if drive mounted"
- Reply: Bob Smedley: "Re: Help finding if drive mounted"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|