WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

System Info

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Change System Date with Winbatch

Keywords:     system date

Question:

I need to change the system date using WinBatch. I have tried something like:
	newdate = "01/08/98"
	RunWait(Environment("COMSPEC"),"/c date %newdate%")
using DOS, but this is not dependable because the DOS window hangs on my Windows 95. This does seem to work pretty good with Win 3.1 though.

Answer:

See the function IntControl(58...), to set the system time.
Article ID:   W13136
Filename:   Change System Date.txt
File Created: 2001:01:08:16:01:16
Last Updated: 2001:01:08:16:01:16