internal static void run(string[] array) { int unmberOfTimesLoopingTheBatchFile = find(array[1]); Char[] inputC = array[2].ToCharArray(); String name = "", ext = ""; Boolean e = false; for (int i = 0; i < inputC.Length; i++) { if (inputC[i] == '.') { e = true; } if (e == false) { name += inputC[i]; } if (e) { ext += inputC[i]; } } LinkedListNode <File> temp = Kernel.fileDir.First; while (temp != null) { if (temp.Value.getExtension() == ".bat") { if (temp.Value.getName() == name) { // this will iterate on each line that was put into the arrayList ArrayList w = new ArrayList(); w = temp.Value.getData(); for (int i = 0; i < unmberOfTimesLoopingTheBatchFile; i++) { for (int j = 0; j < w.Count; j++) { Decider d = new Decider((w[j]).ToString()); } } } } temp = temp.Next; } }
protected override void Run() { Console.Write("Command: "); var input = Console.ReadLine(); Decider decide = new Decider(input); }