Sean Delere Posted December 4, 2006 Share Posted December 4, 2006 I am a new user of AutoIt so be gentle with me if this is a really stupid question. I have a shortcut that allows me to run a thumbnail making program with the parameters passed to it by the command line. I have 6 of these shortcuts so I am trying to use AutoIt to run them all in sequence by just running one script. The command line that works is - "C:\Program Files\Easy Thumbnails\EzThumbs.exe" Z:\Images\Temp\Files\*.jpg /D="Z:\Images\Large" /P=L /W=400 /Q=90 /M This is what I have tried in AutoIt with out success $CmdLine[0] equals... 6 $CmdLine[1] equals... "Z:\Images\Temp\Files\*.jpg" $CmdLine[2] equals... -D="Z:\Images\Thumb" $CmdLine[3] equals... -P=T $CmdLine[4] equals... -W=50 $CmdLine[5] equals... -Q=90 $CmdLine[6] equals... -M run "C:\Program Files\Easy Thumbnails\EzThumbs.exe" Can someone point me in the direction I am going wrong? Many thanks Sean Link to comment Share on other sites More sharing options...
BigDod Posted December 4, 2006 Share Posted December 4, 2006 $CmdLine[0] etc refers to command line parameters for a script written in AutoIt not another program. The correct syntax for Run is Run("prog.exe"). Try Run("C:\Program Files\Easy Thumbnails\EzThumbs.exe" & "Z:\Images\Temp\Files\*.jpg /D="Z:\Images\Large" /P=L /W=400 /Q=90 /M") Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
xcal Posted December 4, 2006 Share Posted December 4, 2006 Run('C:\Program Files\Easy Thumbnails\EzThumbs.exe Z:\Images\Temp\Files\*.jpg /D=Z:\Images\Large /P=L /W=400 /Q=90 /M') How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Sean Delere Posted December 4, 2006 Author Share Posted December 4, 2006 Thanks for that - works a treat! 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