Nice one Pegasus
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
:
|
| Use the syntax suggested by Dave Patrick to invoke the following
| batch file ***every*** Thursday:
|
| @echo off
| SetLocal
| for /F "tokens=2 delims=/ " %%d in ('echo %date%') do set dom=%%d
| if %dom% LEQ 07 goto Action
| if %dom% LEQ 14 goto :Eof
| if %dom% LEQ 21 goto Action
| goto :eof
|
| :Action
| YourCommand.exe
| EndLocal
|
| The batch file works for a %date% format of the following form:
| Dow DD/MM/YYYY
| If your date format is different then you must adjust the "token="
| parameter accordingly.
|
| I did not check the conditional statements exhaustively to ensure
| that they fire your command every first and third Thursday each
| month. You need to verify this yourself.
|
|