Hi, I'm trying to generate a file from and externally called exe by a webservice. The file creation works fine as long as I'm running the exe as my std user. How can I create the process from the webservice and set the user to not be the default or have the user be able to create the file?
The code that I'm running at this stage is: var l_process : System.Diagnostics.Process; l_processName : String; begin // Create a new process wrapper class. l_process := System.Diagnostics.Process.Create; l_process.StartInfo.CreateNoWindow := false; l_process.StartInfo.WindowStyle := System.Diagnostics.ProcessWindowStyle.Hidden; l_process.StartInfo.UseShellExecute := false; l_process.StartInfo.RedirectStandardOutput := true; l_processName := GetProcessName; l_process.StartInfo.FileName := 'C:\Program Files\WebServiceLinker\WebServiceLinker.exe'; l_process.StartInfo.Arguments := aParamList; if (l_process.Start()) then //MessageBox.Show("Process started OK"); // this just reads everything written to the command line. // jy wil dalk 'n ander plan hier maak. Result := l_process.StandardOutput.ReadToEnd else Result := 'Error in Requesting exe'; Thanks very much. Francois __________________________________________________ Delphi-Talk mailing list -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk