home bbs files messages ]

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 41,922 of 42,547   
   JJ to FromTheRafters   
   Re: Win10 network on/off toggle with adm   
   10 Feb 21 20:33:08   
   
   From: jj4public@gmail.com   
      
   On Tue, 9 Feb 2021 05:19:26 -0500, FromTheRafters wrote:   
   >   
   > May I ask how I could determine if the nettoggle.bat script is running as a   
   > 32-bit or 64-bit program? (I'm on Windows 10 20H2 OS Build 19042.746 64 bit)   
      
   You can check the %PROCESSOR_ARCHITECTURE% variable. Its value is `x86` if   
   32-bit, or `AMD64` if 64-bit; or `IA64` if Itanium 64-bit.   
      
   >>   at>nul   
   >   
   > I don't understand how that command is supposed to eliminate the UAC prompt.   
   > Besides, my "at.exe" ALWAYS returns "1" (whether the gateway is on or off).   
      
   Oh, sorry. I forgot that the tool is deprecated in Windows 10. In this case,   
   check the `%windir%\system32\config\journal` directory instead of   
   `%windir%\system32\config\system` file. FYI, it's applicable for Vista to   
   Windows 10.   
      
   > (2) The script runs with elevated privileges without popping up a UAC prompt   
      
   No program can acquire elevated privileges (admin access) without triggering   
   the UAC prompt. Unless that program alread has elevated privileges.   
      
   --- 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