GetDrive

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jake G

    GetDrive

    <%
    Dim fs,d
    Set fs=Server.Creat eObject("Script ing.FileSystemO bject")
    Set d=fs.GetDrive(" c:\")
    Response.Write( "Drive " & d & ":")
    Response.Write( "Total size in bytes: " & d.TotalSize)
    set d=nothing
    set fs=nothing
    %>

    Does anyone know how to get this to connect to a remote share? The IP
    I want to connect to is 10.20.33.178. I mapped a drive from
    10.20.33.90 to 10.20.33.178 called the K:\ drive.

    I have tried both Set d=fs.GetDrive(" k:\") and Set
    d=fs.GetDrive(" 10.20.33.178") and Set d=fs.GetDrive(" \
    \10.20.33.178") . Nothing seems to work!!!!

    Please help.

    Thanks,
    Jake G.

  • Bob Barrows [MVP]

    #2
    Re: GetDrive

    Jake G wrote:
    <%
    Dim fs,d
    Set fs=Server.Creat eObject("Script ing.FileSystemO bject")
    Set d=fs.GetDrive(" c:\")
    Response.Write( "Drive " & d & ":")
    Response.Write( "Total size in bytes: " & d.TotalSize)
    set d=nothing
    set fs=nothing
    %>
    >
    Does anyone know how to get this to connect to a remote share? The IP
    I want to connect to is 10.20.33.178. I mapped a drive from
    10.20.33.90 to 10.20.33.178 called the K:\ drive.
    >
    I have tried both Set d=fs.GetDrive(" k:\") and Set
    d=fs.GetDrive(" 10.20.33.178") and Set d=fs.GetDrive(" \
    \10.20.33.178") . Nothing seems to work!!!!
    >


    Mappings will not be recognized.

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Comment

    Working...