Please tell me how i can
access remote computer's drive number
using asp
please advice
Printable View
Please tell me how i can
access remote computer's drive number
using asp
please advice
I don't think you can.
can i get by using a 3rd party component like an ocx/
Even though it will give a warning before downloading it will be ok
Please advice
here is an example to how get Drives info from server. Try to adopt it to your needs
Code:Dim fso
Dim Drive
set fso = Server.CreateObject("Scripting.FileSystemObject")
for each Drive in fso.Drives
Response.Write "<p>"
Response.Write "Drive Letter: " & Drive.DriveLetter & "<br>"
If Drive.IsReady = True Then
Response.Write "Drive Ready<br>"
Response.Write "Serial Number: " & Drive.SerialNumber & "<br>"
Response.Write "Volume Name: " & Drive.VolumeName & "<br>"
Response.Write "Share Name: " & Drive.ShareName & "<br>"
Response.Write "FileSystem: " & Drive.FileSystem & "<br>"
Select case Drive.DriveType
Case 0
Response.Write "Drive Type: UNKNOWN<br>"
Case 1
Response.Write "Drive Type: REMOVABLE<br>"
Case 2
Response.Write "Drive Type: FIXED<br>"
Case 3
Response.Write "Drive Type: REMOTE<br>"
Case 4
Response.Write "Drive Type: CDROM<br>"
Case 5
Response.Write "Drive Type: RAMDISK<br>"
End Select
Response.Write "Total Size: " & Drive.TotalSize & "<br>"
Response.Write "Available Space: " & Drive.AvailableSpace & "<br>"
Response.Write "Free Space: " & Drive.FreeSpace & "<br>"
Response.Write "Root Folder: " & Drive.RootFolder & "<br>"
Else
Response.Write "Drive NOT Ready<br>"
End if
Response.Write "</p><hr>"
Next
I implemented this code to the ActiveX control. Check out this link, it's from my site.
http://www.suvorov.net/prjzone/driveinfo/DrivesInfo.HTM
If it's OK for you I'll attach project files.