How to use the Java program to modify the Win7 system's date and time?
<p>I konw how to do this in Windows XP and it's working, but when it's run in Windows 7, it doesn't work.</p>

<pre><code>Runtime.getRuntime().exec("cmd /C date " + strDateToSet); // dd-MM-yy
Runtime.getRuntime().exec("cmd /C time " + strTimeToSet); // hh:mm:ss
</code></pre>
