|
|
#1 |
|
Addicted Member
Join Date: Jun 03
Posts: 178
![]() |
if can send with ftp to my site files using this with no prob
Code:
With Inet1 .URL = "ftp://mysite.com" .UserName = "username" .Password = "password" .Execute , "PUT c:\log.txt htdocs/log.txt" End With Code:
filenumber = FreeFile
Open App.Path & "\" & strCompanyName & ".txt" For Output As #filenumber
Print #filenumber, "Date: " & Date
Print #filenumber, "Name: " & strCompanyName
Print #filenumber, "Address: " & strCompanyAddress
Print #filenumber, "City, ST, Zip: " & strCompanyCity & ", " & strCompanyState & " " & strCompanyZip
Print #filenumber, "County: " & strCompanyCounty
Print #filenumber, "Phone: " & strCompanyPhone
Print #filenumber, "Fax: " & strCompanyFax
Print #filenumber, "SDT Line 1: " & strSecurityDepositMessageLine1
Print #filenumber, "SDT Line 2: " & strSecurityDepositMessageLine2
Print #filenumber, "SDT Line 3: " & strSecurityDepositMessageLine3
Print #filenumber, "Work Order Message: " & strWorkOrderMessage
Print #filenumber, "Unit Number Label: " & Label1.Caption
Print #filenumber, "Move In Inspection Label: " & lblMoveInInspection.Caption
Print #filenumber, "Special Info Label: " & LabelMainArray(11).Caption
Print #filenumber, "Back Charge Label: " & LabelMainArray(21).Caption
Close #filenumber
Code:
.Execute , "PUT App.Path & "\" & strCompanyName & ".txt" htdocs/& strCompanyName & ".txt" |
|
|
|
|
|
#2 |
|
Fanatic Member
Join Date: Jan 07
Location: Orissa,India
Posts: 622
![]() |
Try this
Code:
"Put " & App.Path & "\" & strCompanyName & ".txt" & " " & "htdocs/" & strCompanyName & ".txt" |
|
|
|
|
|
#3 |
|
Addicted Member
Join Date: Jun 03
Posts: 178
![]() |
Re: FTP attached file name issue
that code doesnt give me any errors in vb but doesnt upload anything either
|
|
|
|
|
|
#4 |
|
Addicted Member
Join Date: Jun 03
Posts: 178
![]() |
Re: FTP attached file name issue
ok i got your code working by creating the text file on the root of c drive then ftp that. it didnt work if i tried to send the file from the aps directory. thank you for your help.
|
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|