string[] readTexts = File.ReadAllLines("/Users/Code/Desktop/Testing.bat"); foreach (string s in readTexts) { if(s == "-C") { MessageBox.Show("helo"); } }
@ECHO off ECHO Executing Run Exe! @ECHO on "C:\Users\Code\Documents\Run.exe" -C
var readTexts = File.ReadAllLines("/Users/Code/Desktop/Testing.bat"); foreach (var s in readTexts) { if(s.EndsWith("-C")) MessageBox.Show("hello! The line with \"-C\" is: " + s); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)