Hello,
I am having some trouble running ImageX from a vbScript in VistaPE.
Here is what the script looks like and the error it throws.
Dim Shell
Dim myResult
Set shell = CreateObject("WScript.Shell")
myResult = shell.Run("imagex.exe", 1, True)
When I run this is get:
The operation was cancelled by the user.
Here is what I have done / tried.
If I replace imagex with notepad, notepad comes up just fine so, I know the script is OK.
I have imagex.exe in the same directory as the script. I have even added the path like this "c:\test\imagex.exe"
still the same error.
I even copied imagex.exe over to the system32 directory so it would be in the path and still get the same error.
If I type imagex.exe at the prompt it gives the normal help output to the screen you would expect to see.
I can also type out the whole line with /apply and it works from the command line.
It just doesn't work inside the script.
Has anyone else ever seen this or know how to make this work.
Thanks a bunch.