Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use Vb script to send to a ftp site

Status
Not open for further replies.

tumor

Programmer
May 2, 2002
7
0
0
US
can some one show me the way i would need to have vb open, create a file like
example: ftp://usr:passs@server.net/htdocs/file.txt

maybe something like this
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("ftp://usr:passs@server.net/htdocs/file.txt") Then
Set fFile = fso_OpenTextFile("ftp://usr:passs@server.net/htdocs/file.txt", 2, true, 0)
fFile.WriteLine(stuff)
fFile.Close
Else
Set fFile = fso.CreateTextFile("ftp://usr:passs@server.net/htdocs/file.txt", True)
fFile.WriteLine(stuff)
fFile.Close
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top