the Windows API SHChangeNotifyRegister can detect file creation in disk, but how to know if ‘file creation’ is caused by file copy or not? thank you!
[EDITED], I mean SHChangeNotifyRegister, but not SHChangeNotify, sorry!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you know the file name which is changed you can examine it’s creation and last write times with respect of GetFileTime. If you copy a file from one directory to another you don’t modify the file contain, so the last write times will stay unchanged.