Computing.Net > Forums > Programming > Use batch file to change 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.

Use batch file to change date

Reply to Message Icon

Name: brodie4416
Date: May 20, 2009 at 19:53:30 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

I have a program that will only open if the system date is March 1, and will only be effective if the system date is current after program is opened.

Currently I change the date to march 1, open the program, then change it back to the current date once the program is open. I have to do this every time I turn on my computer.

I would like to do this in a batch file instead,
Help please?

Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: May 21, 2009 at 01:41:32 Pacific
Reply:

set saved=%DATE%
set date=01-03-09
start myprog
set date=%saved%


=====================================
If at first you don't succeed, you're about average.

M2


0
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 Programming Forum Home


Sponsored links

Ads by Google


Results for: Use batch file to change date

Batch file to change some text. www.computing.net/answers/programming/batch-file-to-change-some-text/18769.html

Batch File to Change Database .ini www.computing.net/answers/programming/batch-file-to-change-database-ini/14429.html

batch file to restart computer www.computing.net/answers/programming/batch-file-to-restart-computer/16686.html