I have a code here in C#, the function of this is to generate a list of files in a folder:
ProcessStartInfo processStartInfo = new ProcessStartInfo("cmd.exe", "dir /B /S *.* > D:\\tempf.txt"); processStartInfo.WorkingDirectory = @"C:\test"; Process.Start(processStartInfo); This will just run cmd on C:\test and the arguments are not executed. Is there something missing?