Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 42,384 of 42,547    |
|    Nick Cine to Jeff Barnett    |
|    Re: Setting time zone?    |
|    20 May 24 11:59:19    |
   
   XPost: alt.comp.os.windows-10, alt.comp.os.windows-11   
   From: nickcine@is.invalid   
      
   On Mon, 20 May 2024 11:09:22 -0600, Jeff Barnett wrote:   
      
   > I have a small Win 10 laptop that I got a few years ago to use for   
   > TurboTax when Intuit quit running on Win 7. I occasionally use it for   
   > video conferences too. Today I noticed that it was set to the wrong time   
   > zone so I tried to set it to the proper one.   
   >   
   > I found my way to the place to change it by right click on the date-time   
   > on the tool bar and selecting "adjust date/time". Though a "Time zone"   
   > line was displayed, it was 1) grayed out and 2) non responsive to the   
   > mouse. I tried turning off "Set time automatically" and noted that "set   
   > time zone automatically" was off. The former could be toggled the latter   
   > could not. No combination allowed changing "Time zone".   
   >   
   > Obvious question: How do I set the time zone for this laptop?   
      
   For fingerprinting reasons, I use an old batch script posted by, I think,   
   Herbert Kleebauer long ago to this newsgroup (or to the batch newsgroup).   
      
   All it does is set the timezone randomly to any timezone using tzutil.   
   Here's an example line to set the time zone to "Arabic Time Zone".   
      
    REM (UTC+03:00) Baghdad   
    tzutil.exe /s "Arabic Standard Time"   
      
   Let me look for the script though... ok... I think I found it.   
      
    @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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca