Synthesis Posted August 11, 2009 Share 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.. Link to comment Share on other sites More sharing options...
Yashied Posted August 11, 2009 Share 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... Link to comment Share on other sites More sharing options...
water Posted August 11, 2009 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Synthesis Posted August 11, 2009 Author Share 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. Link to comment Share on other sites More sharing options...
water Posted August 11, 2009 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Synthesis Posted August 11, 2009 Author Share 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. Link to comment Share on other sites More sharing options...
water Posted August 11, 2009 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Synthesis Posted August 11, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
water Posted August 11, 2009 Share 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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Dacha204 Posted August 17, 2013 Share 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]]]]]) Link to comment Share on other sites More sharing options...
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