That worked, but I really need it to wait until the program exits and then change the date back to the current date. I would have used a bat file, but I was under the impression that changing the date in a cmd window would not change the date for windows. Now that I know that it works I will investigate the 'waiting' for a program to exit in a batch file.