472,351 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

GetDrive

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

May 10 '07 #1
1 2379
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"
May 10 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Gavin | last post by:
Hi, I'm a newbie to programming of any kind. I have posted this to other groups in a hope to get a response from anyone. Can any one tell me how...
6
by: Ricky | last post by:
My question: If I have a mapped driver letter g: that referes to \\servername\d\foldername How do I get java to convert it from g: to the real...
5
by: Deano | last post by:
Given a drive letter is there some cut and paste code out there that will check the space remaining? I want to be able to warn the user if the...
1
by: andrewcw | last post by:
I have used System.Management in the past to extract and walk thru drives & check their type. I can also do it with COM's FileSystemObject. Here I...
12
by: New World Order Pigs | last post by:
Is there no way in .net to get disk space remaining for a given drive??? I can't believe it and yet is seems to be so. If someone knows of a way...
3
by: Magnus Blomberg | last post by:
Hello! I have a client javascript that generates a string (like below). This string should then be used by server code (in this case a function...
2
by: Ben | last post by:
Hi, Thanks for reading this post... I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file...
4
by: DMG | last post by:
I have <identity impersonate = "true" /& <authentication mode="Windows"/in the web.config. This is a 2.0 site. My Goal: I want to simply have the...
2
by: Nicopilami | last post by:
Hello i try to do convert the following code into c# but i don't succeed because the c# function DriveInfo do not seem to support UNC path... am i...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.