GetDrive

GetDrive

am 10.05.2007 20:30:34 von Jake G

<%
Dim fs,d
Set fs=Server.CreateObject("Scripting.FileSystemObject")
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.

Re: GetDrive

am 10.05.2007 20:35:20 von reb01501

Jake G wrote:
> <%
> Dim fs,d
> Set fs=Server.CreateObject("Scripting.FileSystemObject")
> 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!!!!
>

http://www.aspfaq.com/show.asp?id=2168

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"