Yes I know about this one you should run it from the drive where Windows is installed Else it will crash when trying to get admin rights Not a big thing for now when i have time i will try to find the problem
Not sure if i would be happy with a tool tampering with my cmd settings. Already thought it must have to do with the mouse input. Although i definitely admire the challege solved for this, noticing that ~30% of the actual code is only for that feature lets me question the usefulness. Don't get me wrong, i only question the design decision.
My Idea on the design is to make every option possible a toggle that's why it takes to much Code and make the Batch a little Slower If have any ideas that you think can improve The Code or the performance PM me
When checking your elevation, i found a slightly different vbs approach from back in the days. This works regardless where the tool is started: Code: openfiles >nul 2>&1 if %errorlevel% NEQ 0 goto :UACPrompt goto :gotAdmin :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~fs0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" exit /b :gotAdmin For quite a while i'm using a powershell solution for this: Code: set "toolpath=%cd%" (NET FILE||(powershell start-process -WorkingDirectory '%toolpath%' -FilePath '%0' -verb runas)&&(exit /B)) >NUL 2>&1 EDIT: In the end disabling a long awaited feature in cmd would make this approach a NO GO.
downloaded .zip as well and when I`m trying to open .bat as administrator I`m getting an infinite loop error about temp\batbox.exe not being recognized as a internal/external command. My windows is clean, just did a fresh install. edit: I made this tweak working by searching on google batbox.exe, put it together with Toggle Tweaker.bat and I have get rid of infinite loop error.
Even though I diable UBlock, it wouldn't let me to download. Probably wrong link. What link did you use to download Batbox?
batbox.exe is included in the batch and should be extracted to your %temp% directory during the batch execution. Try running Toggle Tweaker, leave the window with the batbox error open, then open an explorer window and navigate to %temp%. Do you see batbox.exe there?