I need to run command line from a c# program. I want to set the directory of the command line window. To do so, I am using the following code:
Process.Start("cmd", @"cd C:\Users\user1\Desktop");
When I run the c# program, a command line window is opened, but the directory is not set to C:\Users\user1\Desktop, meaning the command was not executed. What am I doing wrong?