I know its been asked a thousand times and I tried quite a few solutions but I need help to execute a batch file.
I'm using json.net and through debugger it's getting the correct value. But I'm getting an error. And reason for json is because the file path to the batch file can change and I want to write this in such a way the program can change file path too.
Process.Start("cmd.exe", @"/k " + rootObject.Activate.BatchLocation.ToString());
Error
'c:\pathtofile.bat' is not an recognized internal or external command.[code]