Jump to content

ShellExecuteWait complicated command line parameters

Recommended Posts

How to convert this batch script:

7za.exe x "DirectX End-User Runtimes.zip" -y -o"%ProgramFiles%"


ShellExecuteWait("7za.exe", '"x "DirectX End-User Runtimes.zip" -y -o"%ProgramFiles%""')

I tried but and couldn't figure it out. Found some tutorials but they didn't help enough. Tried different " ' and & but nothing seems to work.

What am I doing wrong?

Link to comment
Share on other sites

  • Developers


Run(@comspec & ' /c 7za.exe x "DirectX End-User Runtimes.zip" -y -o"%ProgramFiles%"')

in case of issues change /c to /k so you can see the error.


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...