Author |
Message |
airwolph Guest
|
Posted: Tue Jul 19, 2005 1:56 pm Post subject: Configure VV to remove Files |
|
|
Question, can you configure VV to delete files from a src location older than -X days from the system date? I need to sync files from one server to another and than after a week delete files from the src server older than one week rather than manually deleting the files every week.
Thanks in advance. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8769
|
|
Back to top |
|
|
Miguel Guest
|
Posted: Thu Oct 13, 2005 3:23 am Post subject: Delete files in src after be copied using a script? |
|
|
Can this be done using a script? |
|
Back to top |
|
|
Guest
|
Posted: Thu Oct 13, 2005 4:27 am Post subject: |
|
|
You can use a script to delete files in a folder. Here is a basic script that can be modified.
Const DeleteReadOnly = TRUE
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("C:\Source\*.*"), DeleteReadOnly
This script will delete all files in the "Source" folder. You could use the Windows "Scheduled Task" utility to schedule the script to run at a set time. |
|
Back to top |
|
|
Miguel Guest
|
Posted: Thu Oct 13, 2005 5:16 am Post subject: |
|
|
Thanks,
I will try it,
Miguel. |
|
Back to top |
|
|
|