i am trying to create a
vb script for a application that will copy and move files from one drive to another. The script will move a file from the source folder to the target folder if it if older than one week. I have the script to find the date. i am just having trouble with searchign the folder and loops. heres the date code and suggestions:
<SCRIPT>
window.onload=fnInit;
function fnInit(){
//date created
var oCreated=new Date(document.fileCreatedDate);
//Todays date
var oToday=new Date();
//There are 86400000 milliseconds in a day
var iMilliSeconds=86400000;
var iDaysBetween=(oToday.getTime() - oCreated.getTime()) / iMilliSeconds;
alert("Created: " + oCreated + "\nDays since created: " +
parseInt(iDaysBetween));}
If idaysbetween > 6 CopyTo ("e:\group_1\app1")
</SCRIPT>