Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21847

FTP with Inet and Windows 7

$
0
0
I have the following typical FTP code using INET control. This code works well in XP but I'm unable to upload a file in Windows 7 with it. I've disabled completely the Firewall but nothing happens. Does anyone has an idea about what's going on or what should I do to upload a file with VB 5 or 6 in W7?
Thanks a lot.

Code:


  Inet1.AccessType = icUseDefault
  Inet1.URL = "ftp://mysite.com"
  Inet1.UserName = "myuser"
  Inet1.Password = "mypass"
  c_put = "PUT " & App.Path & "\file.txt" & " " & "/usr/local/www/websites/website/sms/file.txt"
 
  Inet1.RequestTimeout = 40
  Inet1.Execute , c_put
 
  Do While Inet1.StillExecuting
      DoEvents
  Loop
  Inet1.Execute , "CLOSE"


Viewing all articles
Browse latest Browse all 21847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>