使用CInternetSession,完成下载后,文件的修改日期发生改变了,变成的当前日期,(和源文件的日期不同),如何才能保持和源文件修改日期相同?????
解决方案 »
- 求助 如何发送和接收消息
- WinINet FtpCommand 发送REST 16384命令,但是InternetReadFile( m_hFileSession, pszBuffer, dwStep, &dwSize);
- 为什么要用AfxEndThread
- 怎么建头文件才会出现“#if !defined(AFX_PLANE....”这代码?
- CListCtrl怎么用代码实现选定某一行,并滚动到该行,高亮显示之
- word对象生成的二进制流(IStorage)怎么反向生成 word文档??
- hpp 和 cpp 所对应的类为什么没有显示?
- 扩展dll的问题(初次做dll)
- 怎样得到系统时间的毫秒??100分!在线!!!
- VC中怎样实现不同的层,如:第一层用来显示位图,第二层显示其它控件,对第一层用Invalidate不会导致第二层也被Invalidate?
- 谁能介绍ASSERT函数的用法?
- 怎么判断两个机器是属于同一局域网的
The SetFileTime function sets the date and time that a file was created, last accessed, or last modified. BOOL SetFileTime(
HANDLE hFile, // handle to file
CONST FILETIME *lpCreationTime, // creation time
CONST FILETIME *lpLastAccessTime, // last-access time
CONST FILETIME *lpLastWriteTime // last-write time
);
Parameters
hFile
[in] Handle to the file for which to set the dates and times. The file handle must have been created with GENERIC_WRITE access to the file.
lpCreationTime
[in] Pointer to a FILETIME structure that contains the date and time the file was created. This parameter can be NULL if the application does not need to set this information.
lpLastAccessTime
[in] Pointer to a FILETIME structure that contains the date and time the file was last accessed. The last access time includes the last time the file was written to, read from, or (in the case of executable files) run. This parameter can be NULL if the application does not need to set this information.
lpLastWriteTime
[in] Pointer to a FILETIME structure that contains the date and time the file was last written to. This parameter can be NULL if the application does not want to set this information.
但是我下载http://www.111.com/1.mp3时,无法取到此文件在服务器上的修改时间呀???请再帮帮我。。
http的不行。
可以自己写个程序批量改文件的创建 修改时间,也有下载的。