APRES Posted August 23, 2005 Share Posted August 23, 2005 (edited) I need to upload repeatedly few files to the FTP server. I tried t use $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile1.doc','public_html/file1.txt') Sleep(10000) $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile2.doc','public_html/file2.txt') Sleep(10000) But it doesn't work properly. Or connections is slow. But one of two files is constantly broken. Files are very small, just few bytes, but still it doesn't work. What is the correct way to solve it? Edited August 23, 2005 by APRES Link to comment Share on other sites More sharing options...
B3TA_SCR1PT3R Posted August 24, 2005 Share Posted August 24, 2005 (edited) I need to upload repeatedly few files to the FTP server.I tried t use $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile1.doc','public_html/file1.txt')Sleep(10000) $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile2.doc','public_html/file2.txt')Sleep(10000) But it doesn't work properly. Or connections is slow. But one of two files is constantly broken.Files are very small, just few bytes, but still it doesn't work. What is the correct way to solve it?<{POST_SNAPBACK}>you could try a hotkey and function to only access when neededHotKeySet("^!a","Download"); ^=ctrl, !=Alt Func Download() $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile1.doc','public_html/file1.txt') Sleep(10000) $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile2.doc','public_html/file2.txt') Sleep(10000) EndFunc ;==>Download Edited August 24, 2005 by B3TA_SCR1PT3R [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
Gigglestick Posted August 24, 2005 Share Posted August 24, 2005 (edited) Okay, are these binary Word documents or plain text files with a ".doc" extension? Do you see the same "broken" data if you open the original .doc file in plain text? If it's plain text, see if this helps: Opt("FtpBinaryMode",0) Edited August 24, 2005 by c0deWorm My UDFs: ExitCodes Link to comment Share on other sites More sharing options...
w0uter Posted August 24, 2005 Share Posted August 24, 2005 I need to upload repeatedly few files to the FTP server.I tried t use $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile1.doc','public_html/file1.txt')Sleep(10000) $Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile2.doc','public_html/file2.txt')Sleep(10000) But it doesn't work properly. Or connections is slow. But one of two files is constantly broken.Files are very small, just few bytes, but still it doesn't work. What is the correct way to solve it?<{POST_SNAPBACK}>asuming there are my funcs. _FtpPutFile will wait till the upload is completed and retuns success. what does this show you:$Ftpp = _FtpPutFile($Conn, 'C:\mydir\myfile1.doc','public_html/file1.txt') Msgbox(0, '', $ftpp) My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
w0uter Posted August 27, 2005 Share Posted August 27, 2005 i have tried this for myself. and it works perfectly for me. i think the problem is with your ftp server. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll 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