前阵子由于调试需要,往后修改了计算机时间 。但现在回复正常时间后,发现每次编译,都会重新编译一些文件,因为一些文件的时间已经不对了.比较麻烦...弄个小的perl脚本.
use
Win32API
::
File
::
Time
qw{
:
win};
use
File
::
Find;
$now
=
time
();
find(
&
dealfile
,
"
.
"
);
sub
dealfile{
my
$filename
=
$File
::
Find
::
name ;
return
if
((
-
d));
print
$filename
.
"
"
;
(
$atime
,
$mtime
,
$ctime
)
=
GetFileTime (
$filename
);
$atime
>
$now
&&
(
$atime
=
$now
);
$mtime
>
$now
&&
(
$mtime
=
$now
);
$ctime
>
$now
&&
(
$ctime
=
$now
);
SetFileTime (
$filename
,
$atime
,
$mtime
,
$ctime
);
}
最后
以上就是专一镜子最近收集整理的关于vc项目过期解决办法的全部内容,更多相关vc项目过期解决办法内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复