I want to make an application that will do the following:

1. Make a directory on the C drive
2. Make a sub directory in the above directory on the C drive
3. Copy several files into the directory and sub directory
4. Run an executable in the directory.

At this point. The application successfully distributes the files. How to
I get the application to not try and run the application until it
successfully distributes the files? Meaning, copy all the files, then run
the executable. And I only want it to recopy the files if there is a newer
version of the files.