dynamics 365 can not using System.Diagnostics.Process

I want to execute .bat file, but there was no reaction in the dynamics 365.

who knows what the problem is?

Code:

System.Diagnostics.Process ps = new System.Diagnostics.Process();

System.Diagnostics.ProcessStartInfo spt = new System.Diagnostics.ProcessStartInfo();

;

spt.FileName = @“c:\sql.bat”;

spt.Arguments = argsString;

spt.UseShellExecute = false;

spt.RedirectStandardOutput = true;

ps.StartInfo = spt;

ps.Start();

ps.WaitForExit();

I’ll assume that you mean Dynamics 365 for Finance and Operations, because you’ve asked in the Finance and Operations forum. If you meant another Dynamics 365 application, please let me know and I’ll move the tread to the right forum.

Can you please elaborate what you mean by “here was no reaction”? Did you get an exception? If not, how do check what the batch did? Have you looked at the standard and error output streams?

Does your application pool have permissions to read from the file?