Sign in to follow this  
Followers 0
jhinesyo

Trouble with RunWait

5 posts in this topic

Hello AutoITers,

I grab a file from an HTTPS server and store it locally on the machine running my script. Then I would like the 7zip command line to extract it.

My typical problem is that I cant seem to get the RunWait coded properly to execute the 7zip command point it at the zip file and have it unzip to a folder....

RunWait("7za.exe e -o " & @DesktopDir & "\My Folder" & " " & @DesktopDir & "\My Folder\archive.zip", "",@sw_hide)

the proper command line for 7Zip is:

7za e -o "OUTPUT DIRECTORY" "PATH TO ZIP INCL FileName"

my output directory is: @DesktopDir & "\My Folder" ( desktop of current user, folder called My Folder )

Zip is located in: @DesktopDir & "\My Folder\archive.zip" ( desktop of current user, folder called My Folder )

I cannot seem to get this working :) and I know that the issue is in my RunWait command... Usually just a quote/single quote issue but I can for the life of me get this to work!

thanks!

Jeff

Share this post


Link to post
Share on other sites



RunWait('7za.exe e -o "' & @DesktopDir & '\My Folder" "' & @DesktopDir & '\My Folder\archive.zip"', "",@sw_hide)oÝ÷ ÚÚºÚ"µÍÌÍÜÝ[ÈHÝ[ÑÜX]
    ÌÎNÍÞK^HH[È    ][ÝÉÉ][ÝÈ  ][ÝÉÉ][ÝÉÌÎNËÚÝÜ [È ÌÎNÉÌLÓ^HÛÌÎNËÚÝÜ   [È ÌÎNÉÌLÓ^HÛÌLØÚ]K   ÌÎNÊB[ØZ]
    ÌÍÜÝ[Ë ][ÝÉ][ÝËÝ×ÚYJ

Share this post


Link to post
Share on other sites

Works! Thanks!!

Is there anything I can read up on to show me the proper Quote order for the Run Command? Basic Runs are fine, but the command line level are terribly confusing to me!

thanks WeaponX!

Share this post


Link to post
Share on other sites

See datatypes in the helpfile:

http://www.autoitscript.com/autoit3/docs/i...g_datatypes.htm

This doesn't just apply to the Run*() commands though. Its typical when working with command line programs single quotes surround a string containing double quotes.

StringFormat() allows you to create a string the way it is meant to be seen.

Share this post


Link to post
Share on other sites

thanks! I will be able to finally learn this stuff...

take care,

Jeff

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
Sign in to follow this  
Followers 0