We are trying to hide a DOS batch file window using VB.NET.
This is the code that a consultant from long ago (and far, far away) wrote for us, but we're having trouble getting it running - is the syntax different for VB.NET? (Or are we just ignorant?) Anyway, here's what we're using:
R = WinExec("dosprmpt.pif /c *.BAT", _SW_HIDE)
Do While GetModuleUsage(R) > 0
Not being a programmer, I need the most specific code possible. 500 points for something that actually works!
Another note: when the DOS window is hidden, it should NOT BE SEEN ANYWHERE ELSE EITHER (not even the taskbar for a split second). Is this possible???
We're using NT - if it matters...