Jump to content

running files in order


Recommended Posts

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 by cherrylatte
Link to comment
Share on other sites

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 by hajo4

-HaJo

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...