Search found 4 matches

by Mharugha
21 Aug 2008 03:14
Forum: DOS Batch Forum
Topic: Handling Dates - Only checking Day and not all Date
Replies: 6
Views: 12183

greenfinch,

A really appreciate your help.
Thank you very much for your cooperation.

Best Regards
by Mharugha
19 Aug 2008 04:02
Forum: DOS Batch Forum
Topic: Handling Dates - Only checking Day and not all Date
Replies: 6
Views: 12183

Ah, sorry, I assumed like you that date comparisons worked regardless of format. But from messing around with this, IF just treats the whole string as a number, not a date, ignoring / or - separators. So you need to parse the date into a simple number, and your logic will still work: FOR /F "u...
by Mharugha
18 Aug 2008 09:55
Forum: DOS Batch Forum
Topic: Handling Dates - Only checking Day and not all Date
Replies: 6
Views: 12183

1. Check that you have the right date format - if you do echo %date% I assume you date format is dd-mm-yyyy This can vary - mine is dd/mm/yyyy 2. You first section: IF %DATE% EQU 01-01-2008 GOTO NORMAL if %date% GTR 23-09-2008 GOTO SIM The first line is EQU so NORMAL is only used if date = 01-01-20...
by Mharugha
18 Aug 2008 05:00
Forum: DOS Batch Forum
Topic: Handling Dates - Only checking Day and not all Date
Replies: 6
Views: 12183

Handling Dates - Only checking Day and not all Date

Hi people, good day. First of all, i apollogize for my English and i would like to congratulate you for this helpful space. I am really newby, working with batch files, and i need to create one to do the following task. I would like to place it on Startup windows section, so it will be checked every...