Change time by clicking on . bat in windows

24.7k Views Asked by At

I am developing a system where several i'm having to change date to Sunday February 06 3:30:50 AM.

Is there any way to create a .bat so that by clicking on it, the system automatically changes

2

There are 2 best solutions below

4
On BEST ANSWER

use the time and date commands:

time 03:30:50
date 06/02/2011
2
On

Answer obtained from BlackBear and Joey:

Run cmd as Administrator Then type commands such as :

time 03:30:50 date 06/02/2011