✅ Running cmd line command via c# not working
Hello everyone.
I have the following code:
kioskProcess = new Process
{
StartInfo =
{
FileName = "cmd.exe",
WorkingDirectory = Constants.KioskPath,
Arguments = @"npm start",
UseShellExecute = false,
}
};
kioskProcess.Start();
If I run this, the command line opens and goes to the working directory correctly but never runs the "npm start". Am I doing something really stupid here?
3 Replies