i want to display the list of logical drives
i done it but when i publish my website drives does not change as per machine
please help me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Francis SusaimichaelRank #466 · 5.4K reputationPosted Feb 11, 2015, 10:57 PM EST
rakesh mhatre52 reputationPosted Feb 11, 2015, 11:22 PM EST
For Each strDrive In drives
Dim s As New System.IO.DriveInfo(strDrive.ToString())
Dim dr_name As String = s.Name
Dim drive As String = dr_name.Substring(0, 2)
NewRow1 = dt1.NewRow
Dim ex As String = Path.GetExtension(s.Name)
If ex = vbNullString Then
NewRow1(0) = ""
NewRow1(1) = ""
NewRow1(2) = ""
End If
NewRow1(3) = drive
NewRow1(4) = "Folder"
NewRow1(5) = ""
dt1.Rows.Add(NewRow1)
Next
dg_LoacDrive.DataSource = dt1
dg_LoacDrive.DataBind()
Francis SusaimichaelRank #466 · 5.4K reputationPosted Feb 12, 2015, 1:29 AM EST
rakesh mhatre52 reputationPosted Feb 12, 2015, 1:58 AM EST
i want that when user access web site it must show his local drive not of server machine
VulpesRank #55 · 29.2K reputationPosted Feb 12, 2015, 2:48 AM EST
However, if the client is using Internet Explorer, then you can use javascript and ActiveX to do it:
http://stuff4mdesktop.blogspot.co.uk/2008/11/get-client-systems-drive-list.html
rakesh mhatre52 reputationPosted Feb 12, 2015, 7:00 PM EST
rakesh mhatre52 reputationPosted Feb 12, 2015, 7:18 PM EST
VulpesRank #55 · 29.2K reputationPosted Feb 13, 2015, 1:50 PM EST
There's no way any reputable browser is going to give a web application access to the client's file system unless some sort of plug-in (or ActiveX in the case of IE) has been installed for this purpose.
rakesh mhatre52 reputationPosted Feb 13, 2015, 8:14 PM EST
i want to display all FTP Folders and files at 1 side and on other side i want to display local drives so that i can perform upload,download,delete and rename functionality..
VulpesRank #55 · 29.2K reputationPosted Feb 14, 2015, 7:39 AM EST
rakesh mhatre52 reputationPosted Feb 15, 2015, 8:11 PM EST
if i get solution for this i will let u know..