Sign in to follow this  
Followers 0
Fran

_RunDos wzzip help

4 posts in this topic

Hi there,

I can't seem to get my command to run from within my autoit script.

If I copy the path from input box and paste in command prompt it works, but if I run the rest of the script it simply exits without zipping the files.

Any suggestions?

#include <Process.au3>
InputBox("","","wzzip -x""" & @ScriptDir & "\_tmp\fscommand_basic\*.*"" -p -r """ & "" & @ScriptDir & "\_tmp\test.zip"" """ & @ScriptDir & "\_tmp""")
$command = "wzzip -x""" & @ScriptDir & "\_tmp\fscommand_basic\*.*"" -p -r """ & "" & @ScriptDir & "\_tmp\test.zip"" """ & @ScriptDir & "\_tmp"""
_RunDOS($command)

Share this post


Link to post
Share on other sites



A space is missing after -x


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

The "space" is not the issue. As I said, if I copy the path directly to cmd it works 100%

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

The "space" is not the issue. As I said, if I copy the path directly to cmd it works 100%

If you try like this ?

$command =  @windosDir & "\wzzip.exe -x """ & @ScriptDir & "\_tmp\fscommand_basic\*.*"" -p -r """ & "" & @ScriptDir & "\_tmp\test.zip"" """ & @ScriptDir & "\_tmp"""
ConsoleWrite ( "$command : " & $command & @Crlf )
RunWait ( $command, '', @SW_HIDE )

Is wzzip.exe placed in @windosDir ?

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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