I have a java file TestOutput.java that we need to run only on Sundays. We also have a DOS based file copy command that need to run only on Sunday. How can this be achieved?
The batch file has some parts that need to run every day, and some that runs only on Sunday.
It has to do the following in the batch file:
REM This part runs every day
copy E:\Data\output1.psv S:\Output\output1.psv
...
...
...
REM This part runs on Sunday only
IF (DAY of sysdate=='SUNDAY')
java TestOutput
copy E:\Data\output2.psv S:\Output\output2.psv
END IF
please help.
Thanks
This solution is locale independent.