|
-
Jun 7th, 2000, 12:23 AM
#1
Thread Starter
Hyperactive Member
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
JazzBass
In the .NET era
Trying to remember VB6
Progress: 
XP Professional @ Home
and @ the Office
-
Jun 7th, 2000, 01:47 AM
#2
Member
u can use Shell function to start the program & use Waitforsingleobject API to wait till the process ends
-
Jun 8th, 2000, 04:46 PM
#3
Thread Starter
Hyperactive Member
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
JazzBass
In the .NET era
Trying to remember VB6
Progress: 
XP Professional @ Home
and @ the Office
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
|