Ok, thanks alot for the information, I will check this up.
Though I might wonder, I have managed to write a code that works in that way, that if the (Source) file have made a change, this file will be copied/replace the (Dest) file.
What I wonder with this code is that if any of the files (Source) or (Dest) is opened or lefter opened or is the two files under and after the whole process closed ?
What I then might wonder is that to make this process work, I am using an eternity-loop that checks the file all the time.
The problem though is that the processor peeks on 100 % all the time.
Is there any other way/approach to make it check this code all the time to avoid this heavy processor work ?
String^ Source = textBox2->Text;
String^ Dest = textBox3->Text;
int i = 4;
while(i > 0)
i = (i + 1);
System::DateTime CurrentWriteTime = System::IO::File::GetLastWriteTime(Source);
System::DateTime LastWriteTime2 = System::IO::File::GetLastWriteTime(Dest);
if( CurrentWriteTime != LastWriteTime && CurrentWriteTime != LastWriteTime2 && System::IO::File::Exists(Dest))
System::IO::File::Copy(Source, Dest, true);
System::DateTime LastWriteTime = System::IO::File::GetLastWriteTime(Source);
if( i > 10000 )
i = 4;