Re: Suppressing Command Window - objShellExec (ping...)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Would you be so kind as to provide the syntax for using WshShull.Run to pipe
the results to a text file? TIA.


"Dave Wyatt" <dlwyattATe-wyattDOTorgNOSPAM> wrote in message
news:C41F2DC4-AA84-419F-8543-8D9D9C30B56C@xxxxxxxxxxxxxxxx
Not when you're using WshShell.Exec. If you use WshShell.Run instead, you
can have the new window run minimized, but that adds the extra steps of
piping your ping output to a temporary file, then reading that file (as
opposed to just doing objExec.StdOut.ReadAll).

Because of the bugs in WshShell.Exec, I prefer to use the Run / Temp File
method anyway.


.



Relevant Pages

  • Re: Firefox not loading dom quickly enough: how to wait?
    ... > Also the little bit of syntax where you called the function of the ... Sorry for the misinformation about the body object not existing, ... know how I'd gotten that into my head. ... And that will work such that when the window loads it runs the code and thus ...
    (comp.lang.javascript)
  • Re: fileevent
    ... Turns out to have been a typo on my part,. ... that the pipe is ready to read when there is no data to read (the file ... I have a script that reads a tailed file via a pipe, ... it and puts up the info in a HLIST window. ...
    (comp.lang.perl.tk)
  • Re: Is this OK?
    ... EnumWindows() so the enum-proc can re-use the pipe for each window it ... When the window proc is in the same process, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Is this OK?
    ... EnumWindows() so the enum-proc can re-use the pipe for each window it ... When the window proc is in the same process, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Key-press detection
    ... to develop a simple computer game. ... detect which key the user is pressing, eg, if the user is pressing ... pipe =!GetConsoleMode; ... should be displayed inside the window. ...
    (comp.programming)