Hi all
Iam looking for the information to get the name of the my shared drive in our network.
I can able to get the info using my VB code but I couldn't able to do with ASP..?
Please help me how do I get info from ASP..
Here is the coding in vbscript..
Sub ShowDriveType(drvpath)
Dim fs, d, s, t
Set fs = CreateObject("Scripting.FileSystemObject"
Set d = fs.GetDrive(drvpath)
Select Case d.DriveType
Case 0: t = "Unknown"
Case 1: t = "Removable"
Case 2: t = "Fixed"
Case 3: t = "Network"
Case 4: t = "CD-ROM"
Case 5: t = "RAM Disk"
End Select
s = "Drive " & d.DriveLetter & ": - " & t
s = s & ": - " & d.ShareName
Response.write "<br> Drive type is " & s
End Sub
ShowDriveType("h"
Please guide me inthis issue..
Thanks
Raj
Iam looking for the information to get the name of the my shared drive in our network.
I can able to get the info using my VB code but I couldn't able to do with ASP..?
Please help me how do I get info from ASP..
Here is the coding in vbscript..
Sub ShowDriveType(drvpath)
Dim fs, d, s, t
Set fs = CreateObject("Scripting.FileSystemObject"
Set d = fs.GetDrive(drvpath)
Select Case d.DriveType
Case 0: t = "Unknown"
Case 1: t = "Removable"
Case 2: t = "Fixed"
Case 3: t = "Network"
Case 4: t = "CD-ROM"
Case 5: t = "RAM Disk"
End Select
s = "Drive " & d.DriveLetter & ": - " & t
s = s & ": - " & d.ShareName
Response.write "<br> Drive type is " & s
End Sub
ShowDriveType("h"
Please guide me inthis issue..
Thanks
Raj