将文件从一个位置复制到另一位置后,日期和时间属性未更改 [英] Date and time property not changing after copying file from one location to other by

查看:780
本文介绍了将文件从一个位置复制到另一位置后,日期和时间属性未更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人

我正在当前正在运行的apps文件夹中,通过以下JavaScript的帮助,将文件从一个位置复制到另一位置,但是在检查其属性后,它并没有更改其创建日期和时间.

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);

}

推荐答案

这是预期的行为.

—SA
This is expected behavior.

—SA


这将取决于您操作系统上的文件系统(FAT16/32/NTFS)
选中此链接 [
It will depend upon the file system you have on your OS (FAT16/32/NTFS)
check this link[^]


这篇关于将文件从一个位置复制到另一位置后,日期和时间属性未更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆