Sign in to follow this  
Followers 0
roboman

A little help please

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by weaponx

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 :)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0