Change PC Date and Time.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Hernan_Ortega
Posted On:   Monday, May 31, 2004 03:07 PM

Can any one please tell me how to Change the Personal Computer Date and Time. I Using Windows XP and W2000.


Thanks,

Re: Change PC Date and Time.

Posted By:   David_Thornton  
Posted On:   Monday, May 31, 2004 05:04 PM


String newDate = "01-06-04";
String newTime = "8:30";
try {
Runtime.getRuntime().exec("CMD /c "DATE " + newDate + """);
Runtime.getRuntime().exec("CMD /c "TIME " + newTime + """);
}
catch (Exception e) {
System.out.println(e);
}
About | Sitemap | Contact