Jump to content

FTP - Uploading?


Glyph
 Share

Recommended Posts

Heres what i have:

#include <Ftp.au3>
;variables
$dllhandle = DllOpen('wininet.dll')
$server = 'www.bsed.somee.com'
$username = 'Myusername'
$pass = 'Mypass'
;do it here
$Open = _FTPOpen('FTP wootzor')
$Conn = _FTPConnect($Open, $server, $username, $pass)
$Ftpp = _FtpPutFile($Conn, 'C:\WINDOWS\Notepad.txt', '/Bsed/Notepad.txt')
$Ftpc = _FTPClose($Open)
DllClose($dllhandle)

I suspect it is a problem with ' $Ftpp = _FtpPutFile($Conn, 'C:\WINDOWS\Notepad.txt', '/Bsed/Notepad.txt') '

What is the proper syntax here?, i want to take notepad.txt and upload it to the ftp location, the "bsed" folder and put notepad.txt into it.

tolle indicium

Link to comment
Share on other sites

  • Developers

Heres what i have:

#include <Ftp.au3>
;variables
$dllhandle = DllOpen('wininet.dll')
$server = 'www.bsed.somee.com'
$username = 'Myusername'
$pass = 'Mypass'
;do it here
$Open = _FTPOpen('FTP wootzor')
$Conn = _FTPConnect($Open, $server, $username, $pass)
$Ftpp = _FtpPutFile($Conn, 'C:\WINDOWS\Notepad.txt', '/Bsed/Notepad.txt')
$Ftpc = _FTPClose($Open)
DllClose($dllhandle)

I suspect it is a problem with ' $Ftpp = _FtpPutFile($Conn, 'C:\WINDOWS\Notepad.txt', '/Bsed/Notepad.txt') '

What is the proper syntax here?, i want to take notepad.txt and upload it to the ftp location, the "bsed" folder and put notepad.txt into it.

does 'C:\WINDOWS\Notepad.txt' exist or should that be notepad.exe ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...