Hello to anyone else who is interested in this issue.
I have had no joy in finding a way of making the code itself extract the exe
therefore i have created a workaround. I have created a vb script that runs
the exe file and sends the required commands to work through the user
interface. A copy of this is below.
I hope this is useful to others.
wenz
Option Explicit
Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
'Run the application
objShell.Run "CdData.exe", 9
'Sleep and then send the tab, tab and enter keys to select the unzip button
on
'the zip dialog box
WScript.Sleep 500
objShell.sendKeys "{tab}"
objShell.sendKeys "{tab}"
objShell.SendKeys "{enter}"
'sleep and then select enter to accept the dialog box advising files have
'been unzipped
WScript.Sleep 1000
objShell.SendKeys "{enter}"
'send four tabs and then the enter key to select the close button
objShell.sendKeys "{tab}"
objShell.sendKeys "{tab}"
objShell.sendKeys "{tab}"
objShell.sendKeys "{tab}"
objShell.SendKeys "{enter}"
"wenz" wrote:
Hi
I have an exe which is actually a self-extracting zip file that i would like
to run to extract all the files.
I have the code showing how to use the j# classes and library to extract zip
files however it looks like these work on zip files only, not exe.
Does anyone know how to get around this? I would like to do it all without
having any user input. Using process.start() works however this asks the
user where to extract the files to which I don't want to do.