> But why do you create all these batch files? Just do all in a single one:
Hi Herbert Kleebauer,
<
https://groups.google.com/d/msg/alt.msdos.batch/azQbz6D_v0Y/AjEBAyveEAAJ>>
Thank you again, on behalf of everyone reading this, now, or well into the
future long after we, ourselves, are long gone for this helpful solution!
<
https://i.postimg.cc/5NLJCznK/tz03.jpg>
@echo off
rem tzrandom.bat randomly sets the Windows system timezone
rem by Herbert Kleebauer, 20200415, alt.msdos.batch
setlocal EnableDelayedExpansion
:loop
set /a n=137*%random%/32768*3+1
for /f "tokens=*" %%i in ('tzutil /l^|more +%n%') do set a=%%i& goto :l1
:l1
echo.
echo.
echo setting time zone to: %a%
tzutil.exe /s "%a%"
:: wait 6-24h
set /a n=20864+(%random%*2)
set /a h=%n%/3600
set /a m=(n-(%h%*3600))/60
echo waiting %h% hours, %m% minutes
timeout %n%
goto :loop
exit 0
Your purposefully helpful suggestions to randomly change the Windows
timezone worked perfectly out of the box, and, indeed, is a rather elegant
solution to the stated problem set, which is now happily added to our
Usenet archives as:
<
https://groups.google.com/d/msg/alt.msdos.batch/0EE2VwfKwYc/xuiab8zMAAAJ>
Where these are the permanent web-searchable public archives I know of:
o <
http://tinyurl.com/alt-msdos-batch>
o <
http://tinyurl.com/windowsxp-general> (there is a 30-character limit)
o <
http://tinyurl.com/alt-comp-os-windows-10>
And, for posterity & future leverage, at...
o <
http://alt.msdos.batch.narkive.com>
o <
http://microsoft.public.windowsxp.general.narkive.com>
o <
http://alt.comp.os.windows-10.narkive.com>
Yours is a general purpose solution which many can benefit from instantly,
which allows them to add one more level of protection against browser by
raising the randomness of each of our timezone localization fingerprinting!
<
https://i.postimg.cc/Gh62bnq0/tz04.jpg>
What's interesting is you consistently correctly surmised a general purpose
solution to the problem set, where, as you noted, there's no need to create
separate timezone command files just to randomly change the system
timezone.
@echo off
rem tzfiles.bat creates named files to set Windows to a given timezone
rem by Herbert Kleebauer, 20200414, alt.msdos.batch
setlocal EnableDelayedExpansion
set t=0
for /f "tokens=*" %%i in ('tzutil /l') do (
set /a t=t+1
set b=!a!
set a=%%i
if !t!==2 (echo REM !b!>"!a!.bat"
echo tzutil.exe /s "!a!">>"!a!.bat"
set t=0))
exit 0
However, to answer your specific question, there is still much value in
creating the 137 timezone files (or 137 shortcuts setting these timezones).
<
https://i.postimg.cc/J0mLXN73/tz02.jpg>
This essentially creates an instant easily accessible timezone GUI:
<
https://groups.google.com/d/msg/alt.msdos.batch/azQbz6D_v0Y/AjEBAyveEAAJ>
In addition, once we have the 137 timezone command files, at any given
time, a single command can randomly set the timezone out of a smaller
selection of timezone files via this script posted earlier:
@echo off
rem tzset.bat randomly sets Windows timezone based on available files
setlocal EnableDelayedExpansion
cd .\tzfiles
set n=0
for %%f in (*.*) do (
set /a n+=1
set "file[!n!]=%%f"
)
set /a num=%random% %% 137-1
"!file[%num%]!"
exit 0
In summary, both methods have their value, where your purposefully helpful
script can run permanently in the background to set the timezone randomly
(but roughly about every few hours).
And where your wonderful timezone file creation script can be used to
selectively cull the available timezones into a folder for either random
selection, or simply WinXP style cascade menu accordion style selection,
which, I note, never left Windows 10.
There are a few housekeeping chores to tidy up the interface, but the hard
work was done by you such that I thank you for contributing a general
purpose solution for any Windows user to randomly change their timezone to
make it just a little bit harder for browser fingerprinting to work.
Thank you for being a fellow purposefully helpful adult on Usenet!
--
REFERENCES for improving the GUI to switch to random timezones graphically:
o Can windows 10 be made to look like XP?
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/GIEGzBnB1SA/lvxBoSJaBQAJ>
o Why does anyone bother to install Classic Shell on Windows?
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/dTHKXIdlqcw/6e7e7dq_AQAJ>
o How can we further IMPROVE the efficiency of the Windows left-side desktop pane?
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/OoKl4lKrFUc/vw8ozQdkAQAJ>
o Please follow this cut-and-paste tutorial to get batch command shortcuts working perfectly on Windows
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/1PzeGP4KMTU/tTbcd9zxAAAJ>
o What Windwos freeware adds powerful "phone Susan" & "vipw" commands?
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/ySVGbayhLSk/zXK3PjijAwAJ>
o Tutorial for setting up a well-organized consistent efficient Windows menu system
<
https://groups.google.com/d/msg/microsoft.public.windowsxp.general/eWU-jOkFRtU/lkVU8yolBQAJ>
etc.