Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

LaunchAppAndWait(), .bat file, Suppress Output?


2 replies to this topic

cmahood

cmahood
  • Members
  • 28 posts

Posted 23 April 2004 - 19:08

My installer currently includes an installscript function with the call LaunchAppAndWait(), which is used to launch a .bat file.


Unfortunately, the .bat file in question creates some std text output so a console window is opened momentarily.

This is probably not an Installshield question per se, but does anyone know how to suppress I/O (/dev/null in UNIX) from within a DOS .bat file? Alternatively, is there an option to suppress output from LaunchAppAndWait()?

Thank You




Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 25 April 2004 - 05:51

You can append > to the command in the .bat to redirect the output, like:
dir > file.txt

hteichert

hteichert
  • Members
  • 158 posts

Posted 26 April 2004 - 13:57

And if you really want to suppres the output completely then don't redirect it to a file like Stefan mentioned ("dir > file.txt"), instead redirect the output to the nul device ("dir > nul")
h.teichert-ott