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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Close a MS-Dos Window?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a small problem -> I wish to close an MS-DOS window (using VB) that I have running in the background (i.e. not available on the task bar, but able to be viewed in the task manager).

I have used DestroyWindow & CloseWindow API's as mentioned in MSDN, but to no avail... it just will not close!

I need to close it via code, as in the live environment the user will not be able to see the MS-DOS window, as previously mentioned.

[For those with OPENROAD skills, the reason why I am doing this is to remove the IIGCC & IIGCN from the users view in NT]

Has anyone any ideas how I can do this?
 
You could shell to the "kill" command. Very ugly, but if you know the process name or number it could be very effective.

David Moore
dm7941@sbc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top