Search found 2 matches

by fuxing
22 Jan 2020 07:14
Forum: DOS Batch Forum
Topic: Start Task when date arrived
Replies: 3
Views: 4181

Re: Start Task when date arrived

I Found a solution! I changed the format of the date into yyyymmdd: call :date_to_number %date% date1 call :date_to_number %validthru% date2 if %date1% gtr %date2% (goto invalid) else (goto valid) goto :eof :date_to_number setlocal if "%~1" EQU "" goto :eof for /f "tokens=1,2,3 delims=." %%D in ("%~...
by fuxing
22 Jan 2020 05:25
Forum: DOS Batch Forum
Topic: Start Task when date arrived
Replies: 3
Views: 4181

Start Task when date arrived

Hallo! I have a problem with a date check within a batch file. I have a file under "C:\Windows" called "apsch" where i enter a date until nothing should happen. But when the date has passed i want the batch file to rename another file. My Problem is that it only looks for the day, but ignores the mo...