Jump to content
Sign in to follow this  
mkseegs

Trouble with tzutil syntax

Recommended Posts

mkseegs

I am trying to create a simple script to prompt a user to select their location and then based on that set the computers Time Zone appropriately

I am struggling with how to enter the code properly for AutoIT to recognize it:

For Example: From a Command line you can enter C:\Windows\System32\tzutil /s "Central Standard Time" to set the time zone to central time

The " " around the Time Zone is what is throwing me off.  How can I translate the above for AutoIT?

 

 

 

 

Share this post


Link to post
Share on other sites
JLogan3o13

ShellExecute("tzutil", '/s "Central Standard Time"')

 


√-1 2^3 ∑ π, and it was delicious!

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  

×