Synthesis Posted August 11, 2009 Posted August 11, 2009 hello all! I've got another problem... >_< Here's my script : filedelete ('C:\program files\text.txt') fileopen ('C:\program files\text.txt',1) FileWriteLine ('C:\program files\text.txt', "something") fileclose ('C:\program files\text.txt') $server = 'something.com' $username = 'nephentes' $pass = 'password' $Open = _FTPOpen('MyFTP Control') $Conn = _FTPConnect($Open, $server, $username, $pass) $Ftpp = _FtpPutFile($Conn, 'C:\program files\text.txt', '/public_html/text.txt') $Ftpc = _FTPClose($Open) The problem is the following : it creates my file, but it doesn't upload it. Why? (PS : I've tried 2 ftp accounts and still the same problem) Please help me! It's a project that I need to finish it until September..
Yashied Posted August 11, 2009 Posted August 11, 2009 (edited) This is HTTP, but not FTP. _FTP... functions does not work with it. Edited August 11, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More...
water Posted August 11, 2009 Posted August 11, 2009 Could you do a consolewrite after eacht FTP command to see if everythin works fine? Could you change $Ftpp = _FtpPutFile($Conn, 'C:\program files\text.txt', '/public_html/text.txt') to $Ftpp = _FtpPutFile($Conn, 'C:\program files\text.txt', 'text.txt') My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Synthesis Posted August 11, 2009 Author Posted August 11, 2009 Could you do a consolewrite after eacht FTP command to see if everythin works fine? Could you change $Ftpp = _FtpPutFile($Conn, 'C:\program files\text.txt', '/public_html/text.txt') to $Ftpp = _FtpPutFile($Conn, 'C:\program files\text.txt', 'text.txt') I've tried this.
water Posted August 11, 2009 Posted August 11, 2009 So every return code you get looks fine and the two variations of _FTPPutFile don't work as well? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Synthesis Posted August 11, 2009 Author Posted August 11, 2009 If I remove the fileopen - fileclose section, it uploads it, but if it stays, it doesn't upload, it only creates the text tile.
water Posted August 11, 2009 Posted August 11, 2009 (edited) Could you change "C:\program files\..." to "C:\temp\..." just to be sure you have full access rights? BTW: What OS do you use, what AutoIT version do you use? Edited August 11, 2009 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Synthesis Posted August 11, 2009 Author Posted August 11, 2009 Could you change "C:\program files\..." to "C:\temp\..." just to be sure you have full access rights?BTW: What OS do you use, what AutoIT version do you use?I am the administrator on this computer.I use Windows XP SP2I use AutoIT 3.3
water Posted August 11, 2009 Posted August 11, 2009 (edited) Soon I'll be running out of ideas >_< Do you have access to the FTP server? If yes could you check the logs to see how far you get? Connection established, PUT started, error codes etc.? Edited August 11, 2009 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
Dacha204 Posted August 17, 2013 Posted August 17, 2013 Old thread, I know, but problem remains. Ok, I had similar problem and solved it by enabling Passive mode when connecting to server. $Conn = _FTP_Connect($Open, $server, $username, $pass,1) From help file: _FTP_Connect($l_InternetSession, $s_ServerName, $s_Username, $s_Password [, $i_Passive = 0 [, $i_ServerPort = 0 [, $l_Service = 1 [, $l_Flags = 0 [, $l_Context = 0]]]]])
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now