FTP url in address bar??

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2009
Posts: 108
Reputation: jrosh is an unknown quantity at this point 
Solved Threads: 0
jrosh jrosh is offline Offline
Junior Poster

FTP url in address bar??

 
0
  #1
34 Days Ago
I want to run a FTP url in explorer. (Not in IE)
What i want is some how when the button clicked the URL should appear in the address bar of the windows explorer.

This is because the ftp I access should be accessed in that way (By typing the url in the address bar of..lets say ..mycomputer window.)

I don't knw whether both do the same thing. But when I do I manually I could access the FTP by typing the URL in address bar in mycomputer(I think it is windows explorer) but not by typing it in the address bar of IE.

Please let me knw the way to put an address in the address bar in windows explorer

thank u.
Last edited by jrosh; 34 Days Ago at 11:41 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 259
Reputation: GeekByChoiCe is on a distinguished road 
Solved Threads: 50
GeekByChoiCe GeekByChoiCe is offline Offline
Posting Whiz in Training
 
0
  #2
34 Days Ago
  1. Dim UserName As String = "myusername"
  2. Dim password As String = "mypassword"
  3. Diagnostics.Process.Start("explorer.exe", "ftp://" & UserName & ":" & password & "@microsoft.com/bugs/")
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 108
Reputation: jrosh is an unknown quantity at this point 
Solved Threads: 0
jrosh jrosh is offline Offline
Junior Poster
 
0
  #3
34 Days Ago
Originally Posted by GeekByChoiCe View Post
  1. Dim UserName As String = "myusername"
  2. Dim password As String = "mypassword"
  3. Diagnostics.Process.Start("explorer.exe", "ftp://" & UserName & ":" & password & "@microsoft.com/bugs/")

what are the Username & password here?? Is it the username & password for FTP??????
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 108
Reputation: jrosh is an unknown quantity at this point 
Solved Threads: 0
jrosh jrosh is offline Offline
Junior Poster
 
0
  #4
34 Days Ago
Originally Posted by GeekByChoiCe View Post
  1. Dim UserName As String = "myusername"
  2. Dim password As String = "mypassword"
  3. Diagnostics.Process.Start("explorer.exe", "ftp://" & UserName & ":" & password & "@microsoft.com/bugs/")

VB gives an error saying that password should be a secureString. How can I create a secureString.????
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 259
Reputation: GeekByChoiCe is on a distinguished road 
Solved Threads: 50
GeekByChoiCe GeekByChoiCe is offline Offline
Posting Whiz in Training
 
0
  #5
33 Days Ago
Originally Posted by jrosh View Post
what are the Username & password here?? Is it the username & password for FTP??????
yes it is

---------
to the last poster....
it only request secure string if you define the username and password during the process.startinfo.password

  1. Public Shared Function ReadSecureString(ByVal password As String) As System.Security.SecureString
  2. ReadSecureString = Nothing
  3.  
  4. If Not String.IsNullOrEmpty(password) Then
  5. ReadSecureString = New System.Security.SecureString
  6. For Each character As Char In password.ToCharArray
  7. ReadSecureString.AppendChar(character)
  8. Next
  9. ReadSecureString.MakeReadOnly()
  10. End If
  11.  
  12. End Function

process.startinfo.password=ReadSecureString("mypassword")
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC