chenxu Posted August 13, 2007 Share Posted August 13, 2007 I download a file from my ftp server and I wanna delete it after I succesfully download it, because I will possibley upload a new file with the same name and, maybe, the same content as the file existed in the server. Any advice would be appreciated Link to comment Share on other sites More sharing options...
Bert Posted August 13, 2007 Share Posted August 13, 2007 How do you do it now? Let me put it another way...if you need to upload a file, or delete a file from the server, what method do you currently use? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
chenxu Posted August 13, 2007 Author Share Posted August 13, 2007 (edited) How do you do it now? Let me put it another way...if you need to upload a file, or delete a file from the server, what method do you currently use?I've no idea of deleting a file from the server or uploading a file to the server. I read the help file carefully, but I do not find any usful info.I'm considering to add the timestamp in the file which happens to be a text file. After download the file, I should process the timestamp to decide whether this file is newer than the one downloaded earlier. But this is not the best solution, there must be a better one, but what it is? Edited August 13, 2007 by chenxu Link to comment Share on other sites More sharing options...
martin Posted August 13, 2007 Share Posted August 13, 2007 (edited) I've no idea of deleting a file from the server or uploading a file to the server. I read the help file carefully, but I do not find any usful info.I'm considering to add the timestamp in the file which happens to be a text file. After download the file, I should process the timestamp to decide whether this file is newer than the one downloaded earlier. But this is not the best solution, there must be a better one, but what it is?Have a look at Wouter's ftp UDF in the sticky section of Example scripts. It has a FTPDelFile function. Edited August 13, 2007 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
lordofthestrings Posted August 14, 2007 Share Posted August 14, 2007 (edited) in a dosbox it's pretty easy to FTP ..(in case you don't want to read and learn the entire UDF..)ftp<enter> open localhost 21 user administrator 12345678 lcd c:\ cd files delete file1.txt byeyou can also create this as a textfile and type c:\>ftp -s:ftpscript.txt to have it go automatic.. Edited August 14, 2007 by lordofthestrings Link to comment Share on other sites More sharing options...
chenxu Posted August 14, 2007 Author Share Posted August 14, 2007 I happened to hear AutoIt a few days ago, and in these days, I spent almost my spare time reading its help file. UDF has not been read. Today, I started to read the "IE Management" of UDF, I found the UDF is wouderful, I do not think that we can create macros like this before. I will read all this UDFs in the next days. Link to comment Share on other sites More sharing options...
chenxu Posted August 14, 2007 Author Share Posted August 14, 2007 I do not find any function about ftp in UDF? Is there any extent extended UDFs? Link to comment Share on other sites More sharing options...
chenxu Posted August 14, 2007 Author Share Posted August 14, 2007 in a dosbox it's pretty easy to FTP .. (in case you don't want to read and learn the entire UDF..) ftp<enter> open localhost 21 user administrator 12345678 lcd c:\ cd files delete file1.txt bye you can also create this as a textfile and type c:\>ftp -s:ftpscript.txt to have it go automatic..I connect to internet by a http proxy which I can not access to from a dosbox. I firstly use AutoIt to set the FtpSetProxy function to set the proxy and download the file 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