Guest SunWuKung Posted August 15, 2005 Share Posted August 15, 2005 Sorry - I am sure it is covered somewhere either in the help file or in the forum - I did search for it but I couldn't find the syntax for changing the windows date to a certain date. Thanks for the help. SWK Link to comment Share on other sites More sharing options...
hgeras Posted August 15, 2005 Share Posted August 15, 2005 check here. You must know how to work with dll's... There is no command in autoit....Maybe there is a UDF already....Search in the forums....C ya Useful information about COM/Objects referenceMy Scripts:PapDefragNvidia Temperature Logger V3.0 with graph analyzerAutoiIt Update Checker And Downloader V1.0ArrayPush UDF Link to comment Share on other sites More sharing options...
Developers Jos Posted August 15, 2005 Developers Share Posted August 15, 2005 #94347 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
BigDod Posted August 15, 2005 Share Posted August 15, 2005 You could also try usin the DOS date command. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother Link to comment Share on other sites More sharing options...
Guest SunWuKung Posted August 15, 2005 Share Posted August 15, 2005 Thanks for the help. I think I can do it from here - if not I will post back. A question out of curiosity: this method with setting the Systime through its dll is a "proper" programmatical approach. I would have thought that the automation approach would be to call the "Adjust Date and Time" window and send keystrokes or set control values - why don't we do that here? Thx. SWK Link to comment Share on other sites More sharing options...
Developers Jos Posted August 15, 2005 Developers Share Posted August 15, 2005 A question out of curiosity: this method with setting the Systime through its dll is a "proper" programmatical approach. I would have thought that the automation approach would be to call the "Adjust Date and Time" window and send keystrokes or set control values - why don't we do that here?Thx.SWK<{POST_SNAPBACK}>Sending keystrokes is a lot slower and will have a higher risk of failure.Don't see why a programmatic approach with either running the DATE commandline program or calling the DLL won't be the right automation approach.Automation to me is: "Be lazy, when the script can do the repetitive tasks for me, why would i want to do it manually ..." SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Confuzzled Posted August 17, 2005 Share Posted August 17, 2005 RunWait(@ComSpec & " /c DATE " & $DateToSetTo, "", @SW_HIDE) should do the trick without a lot of effort. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now