GetDrive
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS ASP > GetDrive




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    GetDrive  
Jake G


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-11-07 12:19 AM

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






[ Post a follow-up to this message ]



    Re: GetDrive  
Bob Barrows [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-11-07 12:19 AM

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"







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:31 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register