roboman Posted September 5, 2007 Share Posted September 5, 2007 Does anyone know ( I'm sure someone does ;-) ) if you can run a command line statement with AutoIT. I want to stop the Time Service ( net stop W32TIME) and then change the date ( date 0x-0x-0x). Thanks Link to comment Share on other sites More sharing options...
weaponx Posted September 5, 2007 Share Posted September 5, 2007 (edited) You can use Run(@ComSpec & " /c net stop W32TIME")- or -Use the builtin function _SetDate#include <Date.au3>_SetDate(20,10,2004) ; Set the current date to 20-10-2004 Edited September 5, 2007 by weaponx Link to comment Share on other sites More sharing options...
roboman Posted September 5, 2007 Author Share Posted September 5, 2007 You can use Run(@ComSpec & " /c net stop W32TIME")- or -Use the builtin function _SetDate#include <Date.au3>_SetDate(20,10,2004) ; Set the current date to 20-10-2004 Link to comment Share on other sites More sharing options...
roboman Posted September 5, 2007 Author Share Posted September 5, 2007 Thanks !! I figured it out after I posted the question, found the info about ComSpec in the help files,I should have spent more time their before posting here Thanks again for you quick reply 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