New
#1
Need some help making a short batch file
Hi
I need help with a rather short batchfile.
I need Two actually each with subtle differences..
Batch file A
1-Check the date of the file on a USB pen in folder B is newer than the same file on the PC if it is then replace the file
2-run a .exe program ( I hope the batch file doesn’t move forward until the .exe program ends)
3-1-Check the date of the file on a PC pen is newer than the same file on the USB pen Folder A if it is then replace the file
Batch file B
1-Check the date of the file on a USB pen in folder A is newer than the same file on the PC if it is then replace the file
2-run a .exe program ( I hope the batch file doesn’t move forward until the .exe program ends)
3-1-Check the date of the file on a PC pen is newer than the same file on the USB pen Folder B if it is then replace the file
the reasoning for this is that Inhave a car theory test Program installed in two computers but want to be able to continue the progress, whichever computer I am using, as the save file is in Appdata, then I can, take this with me to the other PC, the date check is just a precaution, in case the same PC is used for more than one session and the file has not been updated on the othe PC.
I hope it sounds more complicated than it is.......
I am assuming that when the .exe is launched in the batch file that the next ‘line’ to backup the file is not executed until the program is terminated.
thanks in advance