I have some batch files that currently run every day that basically open system files as soon as the system data is updated in the morning (which can be at different times depending on the day).
The current batch files (created from CMD) all run a simple start:... command to open the files.
I am looking for a way to only run some of the batch files on Mondays and Thursdays, but not open the programs on any other day. Basically if the batch file runs every day, it would do nothing unless it was Monday or Thursday, and then it would open the system file.
Here's some code from many many moons ago:
You could find the day of the week using
which will give you a number refering to the day of the week (this changes based on your local settings, but usually Sunday is 0).
You could use this and an
if
statement to decide whether the code should run.