Computing.Net > Forums > Disk Operating System > DOS command to check current date?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS command to check current date?

Reply to Message Icon

Name: Trace
Date: January 25, 2000 at 18:58:37 Pacific
Comment:

All:

I need to execute a few DOS commands (via a bat file which runs each time the computer is booted) but only on a certain date.

Does anyone know the "IF (certain date) THEN (do this, that, the other)" DOS command(s)?

Any help greatly appreciated.
Thanks,
TRACE



Sponsored Link
Ads by Google

Response Number 1
Name: Mick C
Date: January 26, 2000 at 10:31:39 Pacific
Reply:

I have 2 applications that may be of help to you.

1. MS-DOS 5.0 Command Referance

2. MS-DOS 6 Resource Kit

Both can be downloaded from my Resource site:

http://www.powerload.fsnet.co.uk

Or click on the link at top of this message.


0

Response Number 2
Name: Trace
Date: January 28, 2000 at 12:34:30 Pacific
Reply:

Thanks for that reference. I did check out that site - it is very useful. While those materials do cover many DOS commands, none of them appear to refer to referencing the current date for conditional operations. The "IF NOT EXIST" item does check for the existence of a particular file name, but nothing is mentioned about referencing the current date.

This seems like it would be a relatively common need for programmers. Possbibly I've missed something in the documentation.

Any other suggestions would be appreciated.

Thanks,
TRACE


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS command to check current date?

DOS batch to check file dates www.computing.net/answers/dos/dos-batch-to-check-file-dates/13578.html

dos batch to check file date www.computing.net/answers/dos/dos-batch-to-check-file-date/12627.html

Naming files to the current date in Dos www.computing.net/answers/dos/naming-files-to-the-current-date-in-dos/9853.html