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!
ProgrammingScripting LanguagesWindows BatchWindows 7

Avatar of undefined
Last Comment
bbimis

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
bbimis

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

ASKER
just curious where is the zones.txt file at so i can look at its format ?
oBdA

The format is as described in your question.
Your help has saved me hundreds of hours of internet surfing.
fblack61
bbimis

ASKER
oh okay cool thanks!