Link to home
Create AccountLog in
Avatar of bbimis
bbimis

asked on

change timezone based on number

lets say i have a file zones.txt
inside this file I have the following
1 central standard time
2 central standard time
3 eastern standard time

how via a bat script can I read that file and pass it to tzutil

basically in the script it will say type location number so i hit 3
it will then search the text file and issue the command tzutil /s "Eastern Standard Time"

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of bbimis
bbimis

ASKER

thank you so much i can use this as a baseline of what i'm trying to do.
Avatar of bbimis

ASKER

just curious where is the zones.txt file at so i can look at its format ?
The format is as described in your question.
Avatar of bbimis

ASKER

oh okay cool thanks!