/[projects]/dao/file2mq/file2mq/Program.cs
ViewVC logotype

Diff of /dao/file2mq/file2mq/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2575 by torben, Wed Jul 3 07:51:12 2013 UTC revision 2576 by torben, Thu Jun 11 13:41:56 2015 UTC
# Line 73  class File2Mq Line 73  class File2Mq
73              Environment.Exit(1);              Environment.Exit(1);
74          }          }
75    
76            String baseName = Path.GetFileName(fileName);
77            String archiveFile = archiveDir + "\\" + baseName;
78    
79            if (File.Exists(archiveFile))
80            {
81                Console.WriteLine("Archive file already exists {0}", archiveFile);
82                Environment.Exit(1);
83            }
84    
85                    
86          StreamReader input = null;          StreamReader input = null;
87          try          try
# Line 135  class File2Mq Line 144  class File2Mq
144    
145              input.Close();              input.Close();
146    
147              String baseName = Path.GetFileName(fileName);  
148              Directory.Move(fileName, archiveDir + "\\" + baseName);              Directory.Move(fileName, archiveFile);
149          }          }
150    
151          //If an error has occurred in the above,try to identify what went wrong.          //If an error has occurred in the above,try to identify what went wrong.

Legend:
Removed from v.2575  
changed lines
  Added in v.2576

  ViewVC Help
Powered by ViewVC 1.1.20