kawaiitenshi Posted June 12, 2012 Share Posted June 12, 2012 Hello AutoIt forum, I'm in a pickle, I have a command line executable that allows me to convert 1 file to a different file type. now the issue is that i have 19277 files with different names but same extension that i need to have converted using that command tool is there a way to make a script that allows me to automate the process of loading the files 1 by 1 the executable does nothing more then "program.exe file.ext" so i need to have a way to get it to work as in detect filename-> open executable with command program.exe (detected filename) -> {delete source of detected file name} hope i'm a bit clear... thank Link to comment Share on other sites More sharing options...
Decipher Posted June 12, 2012 Share Posted June 12, 2012 Search the help file for these functions: _FileListToArray($Directory, "*.ext") RunWait($Prog) FileDelete($Array[$Index]) For..To..Step..Next I hope that helps. Spoiler Link to comment Share on other sites More sharing options...
JohnQSmith Posted June 12, 2012 Share Posted June 12, 2012 I know this is an AutoIt forum, but you could do this with a one line command at the CMD prompt. for %i in (*.ext) do (program.exe %i & del %i) Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes". Link to comment Share on other sites More sharing options...
kawaiitenshi Posted June 13, 2012 Author Share Posted June 13, 2012 Woohoo..thank you both..this saved me like hours on messing around with figuring out how to do this 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