I have a program where I want to do the following:
- Get a file (type unknown)
- Save file locally
- Execute some command (unknown) on the file
I have step 1 and 2 taken care of but I am struggling on step 3. I use the following code:
NOTE: The file type and command are just used for testing
//Redirects output
procStart.RedirectStandardOutput = false;
procStart.UseShellExecute = true;
procStart.FileName = "C:\\Users\\Me\\Desktop\\Test\\System_Instructions.txt";
procStart.Arguments = "mkdir TestDir";
//No black window
procStart.CreateNoWindow = true;
Process.Start(procStart);
The .txt document will open, but the command will not be run (there will be no testDir in the test folder)
Suggestions?
Response.End()line when I run the program in my debugger, I removed the line like @Davide suggested I don't get any errors, but the directory is not createdResponse.End()suggests ASP.NET, but I'd prefer not to assume.)