Search found 3 matches

by yerbmeld
23 Mar 2018 06:26
Forum: DOS Batch Forum
Topic: Compare Current Date To A Specific Date
Replies: 6
Views: 6118

Re: Compare Current Date To A Specific Date

Thank you for the suggestions! Your assistance is greatly appreciated! After some tinkering, here is what I wound up using: echo off FOR /F "tokens=1-4 delims=/ " %%A IN ("%Date%") DO ( SET DayOfWeek=%%A ECHO The day of the week is %DayOfWeek% SET Month=%%B ECHO The month is %Month% SET Day=%%C ECHO...
by yerbmeld
22 Mar 2018 13:07
Forum: DOS Batch Forum
Topic: Compare Current Date To A Specific Date
Replies: 6
Views: 6118

Re: Compare Current Date To A Specific Date

Thank you, penpen! My date format is mm/dd/yyyy. However, after parsing the date, the expression "%%~c%%~a%%~b" is returning "2018Thu 0322" and jumps to the CSharp section. My test batch follows: echo off :: assumed date format is "mm/dd/yyyy" for /f "tokens=1-3 delims=/" %%a in ("%date%") do ( if %...
by yerbmeld
22 Mar 2018 10:42
Forum: DOS Batch Forum
Topic: Compare Current Date To A Specific Date
Replies: 6
Views: 6118

Compare Current Date To A Specific Date

Hello, We use batch files to start MS Access databases. The batch files are stored in a network folder and copy the front-end user interface database file to the user's computer. We are in the process of converting the MS Access user interface databases to C# applications. I have one application tha...