Assuming you have full control over the file paths, this is relatively easy. The general process is as follows.
Given a small randomly generated, say, 10 byte control file. 'X' Step 1: Assert that the file at path 2 is not equal to X; if it is, generate another file Step 2: Backup the file at path 1 Step 3: Overwrite the file at path 1 with your control file Step 4: Assert that the file at path 2 is now equal to X. Step 5: Restore the file at path 1 There you go. -- You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en or visit the group website at http://megasolutions.net
