|
-
Apr 4th, 2000, 06:12 PM
#1
Thread Starter
Lively Member
Check out this code, I wrote:
FTP1.TransferType = ftpAscii
If FTP1.Connect("192.22.33.5", usn, pws) = ftpSuccess Then
If FTP1.GetFile("easy1.txt", "c:\temp") = ftpSuccess Then
MsgBox "OK"
Else
MsgBox "Not OK"
End If
Else
MsgBox "Not OK"
End If
If FTP1.Rename("easy1.txt", "easy2.txt") = ftpSuccess Then
MsgBox "Not OK"
Else
MsgBox "Rename failed: " + vbNewLine + FTP1.LastError
End If
FTP1.Disconnect
When I tried to download file easy1.txt everything works fine and then I rename this file on server it worked fine to.
But:
I executed code for second time FTP download file easy1.txt (that doesn't exists!!!?!!) but can not rename it, because there is no file easy1.txt on server(that's OK).
What should I do with this phantom file. Brrrr.
Ermin
Ermin Gutenberger
VB.NET 2010
-
Apr 4th, 2000, 07:11 PM
#2
Hyperactive Member
Hello Ermin,
I can't give you any answer, but wich references are you using for this code?
Michelle.
-
Apr 4th, 2000, 09:59 PM
#3
Thread Starter
Lively Member
I use DewPower FTP control.
http://www.devpower.com
Ermin Gutenberger
VB.NET 2010
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|