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

Calling wextract.exe

Status
Not open for further replies.

perplexd

Programmer
May 9, 2002
154
US
Hi,

Has anyone got any idea how to call wextract.exe? I was previously using Extract.exe (DOS-based), so I was using something of the form:

ShellExecute(NULL, // hWnd - window handle
"open", // operation
"extract.exe", // file
"/Y/A/E/L c:\Temp c:\Temp\TSPDv.cab", // Parameters
NULL, // directory
SW_HIDE); // show cmd

However, when I try this method with wextract.exe I get a messagebox saying "A required resource cannot be located". Any ideas? Is this the wrong calling method? I can't find any reference as to how to call wextract.exe anywhere. However, it must be possible as WinZip uses it to view and extract.cab files.

Any ideas gratefully received!!
 
Hi perplexd.

For the error "A required resource cannot be located", most of the time this is a DLL that cannot be found. Try executing wextract.exe in the same directory as Winzip.
You could use the 'CreateProcess' function, or the 'ShellExecuteEx' instead of 'ShellExecute' to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top