Re: Help finding if drive mounted

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: sree (sree_at_techneers.com)
Date: 04/07/04

  • Next message: kristoff: "Check TCP port status"
    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>
    >
    >


  • Next message: kristoff: "Check TCP port status"

    Relevant Pages

    • Re: N+1 Configuration
      ... In some initial testing we forgot to do that and found that SQL ... Server would try and start before the Tempdb mount point came fully online. ... different from using a drive letter, in which case the SQL Server resource ... The current cluster is Active/Passive. ...
      (microsoft.public.sqlserver.clustering)
    • MapNetworkDrive causes hang in WinPE?
      ... our server build automation. ... either invalid user credentials or an incorrect UNC (e.g. ... access the drive letter the function is hung on mapping ... ' strCredUser is the user credential ...
      (microsoft.public.windows.server.scripting)
    • Re: file linking in office 2003
      ... Note that the letter of the physical drive on the server doesn't make any ... > server has a different IP on each vlan. ... rather than drive letter to point to the file. ... Steve Rindsberg, PPT MVP ...
      (microsoft.public.powerpoint)
    • Re: Task Scheduler and mapped drives
      ... It was a Windows 2000 Server and all the while I was working via Terminal ... MVP - ISA Server ... The drive letter is already mapped by another process. ... I'm using Task scheduler to run a batch file. ...
      (microsoft.public.windows.server.general)
    • RE: Shared folder shows as local disk
      ... Before the migration started - from disk mngt it showed 3 local disk c e f. ... After I shared the folder called server on drive c as share name "server" - ... may also be of interest which restores the drive letter ...
      (microsoft.public.windows.server.general)