-
Hi gang,
Yes, I'm using VB 3, and I'll tell you it's a real pain.
I'm writing an archiving program that executes pkzip(DOS) from vb. The dumb thing moves so fast that I can't tell what the window caption is, before it closes, to use the findwindow api function.
I've looked at some routines written in VB6, which are great and all, but I can't use them because of my version.
Does anyone know of a routine or api that I can use to find when the dos window has closed.
Again, I'm using VB3 Professional and NT 4. Workstation.
Thanks,
JazzBass
-
u can use Shell function to start the program & use Waitforsingleobject API to wait till the process ends
-
nvileka,
Thanks for your reply. I couldn't find any documentation on that API for VB3, only on the newer versions. I did however find some code that uses GetModuleUsage that uses the handle from the shell command. That and with some code I found from Aaron Young (Thanks very much Aaron!!) to redirect output to a text file from a DOS window, I have my app working. Just need to clean it up and add some process screens so that the user knows that it is working.
Thanks again,
JazzBass