kingjacob90 Posted September 28, 2020 Share Posted September 28, 2020 (edited) Hi I have a command: Run('"' & @ComSpec & '" /k ' &'robocopy "'&$DirFromFolder&'" "'&$DirToFolder&'" /E /Z /ZB /R:2 /W:1 /V /XD appdata',@WindowsDir,@SW_SHOW) Now I would like to change the @sw_show to @sw_hide and get autoit to tell me how the progress is going (without the script pausing, I.E not runwait) I have looked around for showing progress for the Windows robocopy command and it is not strait forward. I this possible. I feel like I don't have the understanding of opt_flag's and this might be a answer. Also just knowing when the "run command" has finished would help (I.E msgBox when run command ends). Edited September 28, 2020 by kingjacob90 Link to comment Share on other sites More sharing options...
pseakins Posted September 28, 2020 Share Posted September 28, 2020 Try looking at RunWait() kingjacob90 1 Phil Seakins Link to comment Share on other sites More sharing options...
kingjacob90 Posted September 28, 2020 Author Share Posted September 28, 2020 Sorry forgot to add,without the script pausing. Link to comment Share on other sites More sharing options...
Subz Posted September 28, 2020 Share Posted September 28, 2020 Have a look at the helpfile for StdoutRead the example shows how to read the cmd window output. kingjacob90 1 Link to comment Share on other sites More sharing options...
kingjacob90 Posted September 30, 2020 Author Share Posted September 30, 2020 @Subz Awesome, this is what I was looking for, thanks! Using this example I ended up using processExist() Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now