[progress Communities] [progress Openedge Abl] Forum Post: Re: Os-command No-wait | Silent...

  • Thread starter Thread starter tbergman
  • Start date Start date
Status
Not open for further replies.
T

tbergman

Guest
If you're still stuick on this. T=You may want to give up on os-command and try using .Net to do this. Here's an example that attempts to run the windows shutdown command and captured standard output and error output. It may be enough to get you started. Tom USING System.Diagnostics.*. DEF VAR PSI AS ProcessStartInfo. DEF VAR oProcess AS Process . PSI = NEW ProcessStartInfo(). PSI:CreateNoWindow = TRUE . PSI:UseShellExecute = FALSE . PSI: FileName = "shutdown" . PSI:RedirectStandardOutput = TRUE . PSI:RedirectStandardError = TRUE . /* Will show an error */ /*PSI:Arguments = "/a".*/ /* Standard output */ PSI:Arguments = "/?" . oProcess = Process : Start (PSI). MESSAGE oProcess:StandardOutput:ReadToEnd() VIEW-AS ALERT-BOX . MESSAGE oProcess:StandardError:ReadToEnd() VIEW-AS ALERT-BOX .

Continue reading...
 
Status
Not open for further replies.
Back
Top