Results 1 to 3 of 3

Thread: Running an exe

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    81

    Running an exe

    I am running this in a VBS script:

    Code:
    ObjShell.run "<network share path>\setup.exe /s"
    and it works for me. The /s runs it silent, and installs just fine, silently.

    I am a domain admin, when I go to a users desktop to run it (they are LOCAL admins) it flashes the install icon in the task bar but doesn't install.

    If I remove the /s it will run and install but requires user interaction, which I don't want.

    Any ideas?

    Thanks

  2. #2
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Running an exe

    OK, it appears you mean this is a WSH script.

    I'd guess you need to be a little more explicit about where the command ends and the command parameters begin. Try this instead:
    Code:
    ObjShell.Run """<network share path>\setup.exe"" /s"
    That puts quotes around the command (program) full path, which helps the logic inside the Run method figure out that /s is a switch and not part of the program name.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    81

    Re: Running an exe

    Sorry! I figured it out. The ONE pc I was testing it on was not a local admin for some reason. Tried it on a different PC and it worked just fine.

    Thanks for your response, however!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width