Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dos Run Window will not close

Status
Not open for further replies.

bigspank

Programmer
Aug 10, 2001
28
0
0
US
In my main form I have a Microsoft Agent inthe load event run with this code run [c:\myfile.exe] In windows 95/98/me the dos run window flashes and closes and runs the .exe but in windows 2000 the dos run window stays opened and does not close until you manually close it. I need the window to close as soon as the exe is executed...how do I do this? When you sow a thought, you reap an act. When you sow an act, you reap a habit. When you sow a habit, you reap a character. When you sow a character, you reap a destiny.
 
Well Since Win2K is a NT system, I can State for sure the steps are correct, But.
Open a DOW window and select properties.
Find Close Window on Program termination and select it.
In your program code add the /n2 paramatrer to the run command
example
lcWinApp = ' "c:\windows\net.exe" use V: /d'
run /n2 &lcRunApp
David W. Grewe
Dave@internationalbid.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top