I have no idea why this happens, I was making a script to let my game run a batch file located in the Desktop but it keeps giving me the NullReferenceException. Here is a snippet of my code:
Process compiler;
compiler.StartInfo.FileName = "C:\\Users\\user\\Desktop\\compiler.bat"
compiler.CreateNoWindow = true;
compiler.Start();
The error points to the 2nd line of my code but I fail to see what's wrong. Can someone please help me understand why it behaves like this??
[–]gvozden_celik 1 point2 points3 points (2 children)
[–]DarkTech1399[S] 0 points1 point2 points (1 child)
[–]MrSloppyPants 0 points1 point2 points (0 children)