Title: Message
Phyllis,
 
I don't know, I've never had occassion to test it.  You might want to give it a try.  If you enter the command with no paramters it will give you the syntax as well as some examples -> look at the second one, if you couple something like that with a date parameter it might just work.
 
Good luck with it.
-----Original Message-----
From: West, Phyllis [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 11:31 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [WS_FTP Forum] Auto-delete files after time period

Andy,
 
Can you also use this program to delete the sub directories after 14 days.
 
Phyllis
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 10:23 AM
To: [EMAIL PROTECTED]
Subject: RE: [WS_FTP Forum] Auto-delete files after time period

Scott and Gary,
 
In the Windows 2000 Resource Kit (and probably elsewhere) there is a utility called "forfiles.exe" that will do the job.  I use it in a batch file that runs daily via scheduled task to delete old files.
 
The batch file looks like this:
 

rem Delete FTP data files on the server older than 14 days.

forfiles -pe:\ftpdata -s -d-14 -c"cmd /c del ""@FILE"" /Q /F"

 

rem Delete log files older than 90 days

forfiles -pe:\iftplog -s -d-90 -c"cmd /c del ""@FILE"" /Q /F"

 
Andy
-----Original Message-----
From: Gary Piccoli [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 10:00 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [WS_FTP Forum] Auto-delete files after time period

Scott:
 
This is not an easy task.  You will need to write VB scripts or use some other scripting language to delete the files and then use the "task scheduler" to schedule the task to run at a predetermined day(s) and time. 
 
I have written Pascal scripts to do this function and compiled them into an executable (.exe), but they will only work for the folders that I have defined in the scripts and on files older than n days as specified in the script.
 
Gary J. Piccoli
Colonial Computer Associates
Home of MuSoft 2000
-------Original Message-------
 
Date: 02/09/04 12:04:25
Subject: Re: [WS_FTP Forum] Auto-delete files after time period
 
Well, I guess I should've phrased my question better.  I think I can do this with a scheduled batch file or other program, but I haven't any idea as to how to write such a batch file or what kind of other software exists.  Has anyone needed to do this auto-deletion of files before, and if so, how did you do it.
----- Original Message -----
Sent: Monday, February 09, 2004 11:57 AM
Subject: RE: [WS_FTP Forum] Auto-delete files after time period

        This sounds like a job for a BATCH file that is triggered by your operating system scheduler.

-----Original Message-----
From: Scott Smith [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 09, 2004 10:33 AM
To: WSFTP_Forum
Subject: [WS_FTP Forum] Auto-delete files after time period


Is there an easy way to say auto-delete anything in a folder that is more
than 2 days old?  I'm looking to have a generic uploads folder on our wsftp
server, but we don't want to have to keep it clean.  I'm guessing I could
use the Windows task scheduler, but I don't know what to schedule...

Scott Smith - IT Manager
Westside & Detroit Reprographics
248.489.1999 (Office)
248.467.0452 (Cell)
[EMAIL PROTECTED]


Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.


An Archive of this list is available at:
http://www.mail-archive.com/wsftp_forum%40list.ipswitch.com/

 


-------------
Note: This message is only intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us by telephone (604-888-2079) or electronically by return message, and delete or destroy all copies of this communication. Thank you.


-------------
Note: This message is only intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us by telephone (604-888-2079) or electronically by return message, and delete or destroy all copies of this communication. Thank you.

<<attachment: 49_i_blue.gif>>

<<attachment: Cream_stripes_cream_border2.gif>>

Reply via email to