File copy doesn't work well in Vista C#
-
Hi All, Currently, I try to copy a file from application directory to user document directory. I modified the source file before, then when I copy as a standard user, the copied file is in previous version(at that time I create the previous source version as administrator). File.Copy("C:\app\data.mdb", "...\my documents\data.mdb"); How can this happen? Is Vista save some previous version? But when I run the program as administrator, then the copied file is OK. I really don't know why. Thanks,
-
Hi All, Currently, I try to copy a file from application directory to user document directory. I modified the source file before, then when I copy as a standard user, the copied file is in previous version(at that time I create the previous source version as administrator). File.Copy("C:\app\data.mdb", "...\my documents\data.mdb"); How can this happen? Is Vista save some previous version? But when I run the program as administrator, then the copied file is OK. I really don't know why. Thanks,
It seemed that Vista has record the source file with different version. When I changed the source file to another directory, The copied is the latest.