|
-
Feb 13th, 2001, 07:25 AM
#1
Thread Starter
Hyperactive Member
hi,
how to sent file to ftp using internet transfer control or api.
I use this:
Dim k As Long, j As Long, aSend As String
aCmd = "PUT"
aFile = Space$(MAX_PATH)
aSend = "c:\Program Files\NSO\text.txt"
j = GetShortPathName(aSend, aFile, MAX_PATH)
aFile = Left$(aFile, j)
For j = Len(aSend) To 1 Step -1
Select Case Mid$(aSend, j, 1)
Case "/", "\", ":"
aSend = Mid$(aSend, j + 1)
Exit For
End Select
Next
j = InStr(aSend, " ")
Do While j
Mid$(aSend, j, 1) = "_"
j = InStr(j, aSend, " ")
Loop
Inet1.Execute , "PUT " & aFile & " " & aSend
Do While Inet1.StillExecuting: DoEvents: Loop
but this not works... 
can anybody help me ?
Andrius
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
|