I hope everyone is well and trying to stay healthy.
So I’m pulling my hair out, not much left. Problem…
1.) I have a built and installed Go executable call it “xray.exe” in my C:\User\Go\Bin directory.
I have no issues opening up the windows command prompt, changing to that directory and running it like so…
executable file name < “inputfilepath” > “outputfilepath”
xray.exe < “C:\file Input path\FileIn.txt” > “D:\File Out Path\FileOutput.txt”
Simply, I am trying to run this executable file via a C# project (to automate the "heavey lifting of a large number of files), I’ve tried (in C#) running the exe directly using process and/or indirectly by trying to run it thru CMD in C#. I can’t for the life of me get it to work. I can only surmise or guess it has something to do with correctly formatting process.info fields and how to correctly mimic the passing of the args. Also I’m not sure if I should use these “<” and “>” “things” that I seem to have to use when doing it manually by opening up and running it in the command window.
Please help. Let me that you for the assistance in advance.
Be well and stay safe.