How to hide a DOS window when calling BAT files or console programs

Using the Icetips Utilities Shell class this is actually very easy.  All you need to do is set the ShowSetting property to IT_SW_HIDE before you call ITRun, ITRunWait or ITRunFile.

ITS ITShellClass
 ITS.ShowSetting = IT_SW_HIDE
 If ITS.ITRun('consoleprog.exe',True,CmdLine) = 0

That's really all there is to it:)  By default the ShowSetting is set to IT_SW_SHOWNORMAL.  For more information about the available IT_SW_ constants see and for information about what each constant means see

Have more questions? Submit a request


Please sign in to leave a comment.
Powered by Zendesk