I use VS 2017 Community, Windows Forms app, and I try call to BAT script (in UNC folder):
Process.Start(@"\\sharefolder\editHosts.bat");
Sometimes I get the error:
ComponentModel.Win32Exception (0x80004005): The operation was canceled by the user
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
I have already checked the following things:
Any suggestions?
User contributions licensed under CC BY-SA 3.0