This is what I what I have done so far but I can see that I need do something more with the statement to be able to compared dates. Could you give me an example of how to do it.
FileInfo fileinfo = new FileInfo(@"\\ops.expressandstar.co.uk\KnowledgePlanningVersions\knowledge planning.zip");
FileInfo fileinfo2 = new FileInfo(@"c:\Temp\knowledge planning.zip");
DateTime time = fileinfo.CreationTime;
DateTime time2 = fileinfo2.CreationTime;
if (time = time2)
{Environment.Exit(0);}
else
{ Console.WriteLine("The program will continue"); }
This post has been edited by thomas130: 01 December 2011 - 08:36 AM

New Topic/Question
Reply




MultiQuote





|