Commits

Kit Roed committed 40f0d94

Update FoxProParser/Program.cs to use paths passed as command arguments instead.

Comments (0)

Files changed (1)

FoxProParser/Program.cs

 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
+using System.IO;
 
 namespace FoxProParser
 {
     {
         static void Main(string[] args)
         {
-
-            //@"test_VFP\VFP9\material_receipt\classes\material_receipt.vcx"
-            Console.WriteLine(FoxProReader.Reader.ProcessFoxProFile(@"test_VFP\VFP9\menus\mainmenubar.mnx"));
+            foreach (string vfpFilePath in args)
+            {
+                if (vfpFilePath != null && File.Exists(vfpFilePath))
+                {
+                    Console.WriteLine(FoxProReader.Reader.ProcessFoxProFile(vfpFilePath));
+                }
+            }
         }
     }
 }