Mayur  Gujrathi

Mayur Gujrathi

  • 378
  • 4.1k
  • 1m

Date and time property not changing after copying file from one location to other

Nov 15 2011 1:57 AM
Dear all

I am copying file from one location to other  with the help of this following javascript in my current running apps folder  but it is not changing its created  date and time  after checking its  property



function copyfile()
{

var scr = '<%=ConfigurationManager.AppSettings("source_filename")%>';
var desc = '<%=ConfigurationManager.AppSettings("dest_filename")%>';
fso = new ActiveXObject("Scripting.FileSystemObject");
fso.CopyFile(scr, desc);

}




Answers (1)