cherrylatte Posted August 1, 2016 Posted August 1, 2016 (edited) hi I'm trying to execute files I want it to run in order. for instance, if there's folder like below, I want to run 1.exe > 2.exe > 3.exe root folder |___folder 1 > 1.exe |___folder2 > 2.exe |___folder3 > 3.exe What I did to do the above, was to make a text file that contains the path to each of those files and put those in array form. but copying and pasting every path of those files into a text file is very exhausting thing to do when there's like hundreds of files to execute. So I was wondering if there is a simple way to run those files. I'd be thankful if anybody answers it. Edited August 1, 2016 by cherrylatte
AutoBert Posted August 1, 2016 Posted August 1, 2016 Use _FileListToArray and loop through the resultarray. cherrylatte 1
cherrylatte Posted August 1, 2016 Author Posted August 1, 2016 16 minutes ago, AutoBert said: Use _FileListToArray and loop through the resultarray. wow I never thought of that. Thank you!!
hajo4 Posted August 2, 2016 Posted August 2, 2016 (edited) 17 hours ago, cherrylatte said: I'm trying to execute files |___folder 1 > 1.exe make a text file that contains the path to each of those files So I was wondering if there is a simple way to run those files. To get the filenames with path into a file simply do "dir" from the commandline, as in dir *.exe /s /b > list.txt And maybe rename that file to list.bat, if all you really need is running all programs in that list. But I would advise to include some checks after each run. Edited August 2, 2016 by hajo4 -HaJo
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