Jump to content

ryarnell

Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by ryarnell

  1. 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.

  2. When you create a new VistaPE directory using the copype.cmd command it creates winpe.wim file in the root of your directory and the boot.wim in the ISO\sources directory. What is the difference in these files and when would you use one over the other.

    Sorry if this has been answered already I did a search but could not find anything.

    Thanks,

    Robin

  3. I am booting from a CD and I get the X: dirve. I really want it to be the B: drive. Or create a new one that has B: as the drive letter. I have several scripts and programs that reference the B: drive. I could go back a re-write it all but it would be much eaiser to just have the B: drive there.

    Thanks,

    Robin

×
×
  • Create New...