Dempsey
Scripting Contest Winner
http://AdamDempsey.net
Posts: 2395 Reputation: 53
38 / /
Joined: Jul 2003
|
RE: [Help!] FTP upload
Something like...
quote: Originally posted by Status2FTP
//Connect
Interop.Call('wininet', 'InternetConnectW', ConnectionHandle, ConfigArray.Server, ConfigArray.Port * 1, ConfigArray.Username, ConfigArray.Password, 1, 1, 0);
//Set FTP Dir
Interop.Call('wininet', 'FtpSetCurrentDirectoryW', result, ConfigArray.Directory);
//Upload File
Interop.Call('wininet', 'FtpPutFileW', result, DetailsArray.DP, dpname, 2, 0);
//Close FTP connection
Interop.Call('wininet', 'InternetCloseHandle', result);
|
|