Trying to advance time two weeks at a time
Posted: 05 Apr 2017 15:20
hello so i am new here and trying to create a batch that advancesa month every...20 seconds for example
i have this script which i was able to compile however to do what i want to do i have to keep changing the date manually on the script
set before=%date%
echo 04/06/2017 | date
ping localhost -n 15
echo %before% | date
so i am after a way to set it to repeat but change by a month at a time
as the way ive done it i have to change it myself instead of it doing this for example:
set before=%date%
echo 04/07/2017 | date
ping localhost -n 15
echo echo 04/08/2017 | date
ping localhost -n 15
echo echo 04/09/2017 | date
but i would be sitting here for some time writing out infinite dates
many thanks and any advice is welcome im new to scripting
i have this script which i was able to compile however to do what i want to do i have to keep changing the date manually on the script
set before=%date%
echo 04/06/2017 | date
ping localhost -n 15
echo %before% | date
so i am after a way to set it to repeat but change by a month at a time
as the way ive done it i have to change it myself instead of it doing this for example:
set before=%date%
echo 04/07/2017 | date
ping localhost -n 15
echo echo 04/08/2017 | date
ping localhost -n 15
echo echo 04/09/2017 | date
but i would be sitting here for some time writing out infinite dates
many thanks and any advice is welcome im new to scripting