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

How to implement automation to other win32 applications?

Status
Not open for further replies.

sedawk

Programmer
Feb 5, 2002
247
US
Hi All,

I have a question on how to automatically run an win32 application automatically with certain parameters. To be detailed, here is a fairly close example of the case though not exactly what I really want:

Say I have 100 *.zip files in different directories and paths, I need to unzip them into one folder. Since Winzip can't unzip all *.zip in one process, I have to do it one by one, such as indicating which path to extract etc. Is there a way to do that automatically by writing an C/C++ code?

I am NOT specifying working on winzip but just an example. Do I need to know the win32 application API so that I can access it?
 
Typically, you can use the API 'CreateProcess' to start another application and pass parameters to it.

If it doesn't accept parameters on the command line, you could try sending the appropriate keystrokes to the application.

Temps
 
I had no problem in opening winzip.exe now. The focus is I can't find an interface in winzip.exe to input all the file names, like:

//path/w*.zip

it seems no way to do that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top