Using process.start to run a batch file.
This batch file runs perfectly when double clicking. When execuiting through process.start it gives below error, have tried process.start cmd /c batfile.bat and this does not work either
"C:\Windows\System32\java.exe" is not recognized as an internal or external command
bat file:
cd c:\CompilerLatest
"C:\Windows\System32\java.exe" -jar compiler.jar --externs "C:\externs.js" --compilation_level ADVANCED_OPTIMIZATIONS --js "C:javascript.js" --js_output_file "C:\output.js"
c#
Process.Start(@"c:\folder\batfile.bat");
Error is showing in command prompt as per title, this does not happen if bat file is run through double clicking