benners Posted December 7, 2005 Posted December 7, 2005 (edited) I am currently trying to learn to use AutoIt and thought I would try something simple to begin with.I use a program called DownloadScan that repairs corrupt rar files with par2 sets, my problem is that the commandline usage requires folders with paths in to be enclosed in quotes and this is where I am having problems.The following code works with folders that have no spaces in the names but I am unable to figure out how to enclose the $CmdLine[2], folder path variable, in quotes so the program runs.;Set the location of DownloadScan.$DS = @ProgramFilesDir & "\uA PowerPack\DownloadScan\downloadscan.exe";Run DownloadScan with the variables passed to it, $CmdLine[1] = -auto, $CmdLine[2] = Folder pathRun($DS&" "&$CmdLine[1]&" "&$CmdLine[2]);Wait until the windows is activeWinWaitActive("DownloadScan by OtakuCODE");Get the text on the status bar . $Status = ControlGetText ("DownloadScan by OtakuCODE", "", "WindowsForms10.msctls_statusbar32.app31");While the text doesn't equal "Ready.", keep checking the text.Do$Status = ControlGetText ("DownloadScan by OtakuCODE", "", "WindowsForms10.msctls_statusbar32.app31")Until $Status = "Ready.";Status bar text is "Ready.", assume DownloadScan has completed.;Delete the redundant .NFO and .Sfv filesFileRecycle($CmdLine[2] & "\*.nfo")FileRecycle($CmdLine[2] & "\*.sfv")ExitI have been searching through the AutoIt forums for an hour but haven't found anything to assist me, back off there now to post the same.ThanksSorted thanks to herewasplato at the AutoIt forums Edited December 8, 2005 by benners
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