Sign in to follow this  
Followers 0
Glyph

FTP - Uploading?

5 posts in this topic

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

Share this post


Link to post
Share on other sites



Help?


tolle indicium

Share this post


Link to post
Share on other sites

Well I can only recommend you to use wput.exe. Its a freeware ftpclient that you can send commands via :)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites

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 ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

It does infact exist because, i put it there.


tolle indicium

Share this post


Link to post
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
Sign in to follow this  
Followers 0