© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
3 replies
João Paul

✅ 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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Running .NET Framework Project off of command line
C#CC# / help
3y ago
❔ 'if' command not working.
C#CC# / help
4y ago
A line of C# code is not working with no error
C#CC# / help
14mo ago