Let the sourcelocation and targetlocation variables be passed in on the command line instead of pointing them at C:\temp. Maybe rename them to something like LogPath and OldLogPath or something else appropriate.