|
-
Apr 16th, 2001, 05:08 PM
#1
Thread Starter
Junior Member
Hi
I'm running shell commands from my program and I want to keep them hidden from the user. My code is:
Shell "c:\windows\cmdproc.bat", vbHide
However when I do this the program remains running and winoldap appears in the task manager. I tried closing it using the DestroyWindow, but I don't think it's working because DestoryWindow can only kill windows I create.
Do
hWnd = FindWindow(vbNullString, "Finished - cmdproc")
DestroyWindow (hWnd)
Loop While (hWnd <> 0) = False
Is there anyway for me to either close the shell box automatically when it finishes?
Maybe by having the program hit the "x" button, or use the "close" menu command? If these are possibilitys can someone point me to an example program. Also would that work while the window was hidden?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|