Niller

ShellExecuteWait complicated command line parameters

2 posts in this topic

How to convert this batch script:

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

To:

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?

Share this post


Link to post
Share on other sites



Try:

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.

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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