GetDrive

J

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.
 
B

Bob Barrows [MVP]

Jake said:
<%
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top