[Script] Win 10 Toggle Tweaker (V4.0) -Official thread-

Discussion in 'Windows 10' started by Yasser Da Silva, Aug 12, 2015.

Tags:
?

How helpful is this Windows 10 Tweaker for you !

  1. 10/10 / Very handy (Must have tweaker)

    74.6%
  2. 5/10 / It's good.

    20.7%
  3. 0/10 :( / Not helpful at all

    4.7%
  1. hanschke

    hanschke MDL Senior Member

    Jan 8, 2008
    425
    33
    10
    why it dont work if I try to start from D:\ drive but run on c:\ download folder :confused:
     
  2. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    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
     
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    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
     
  5. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #985 s1ave77, Feb 17, 2017
    Last edited by a moderator: Apr 20, 2017
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Sunshower

    Sunshower MDL Novice

    Feb 2, 2017
    7
    0
    0
    I'm having an infinite loop.
    I have ramdisk at Z:\, is this the reason why?
     
  7. ycodryn

    ycodryn MDL Novice

    Dec 1, 2009
    17
    4
    0
    #988 ycodryn, Feb 19, 2017
    Last edited: Feb 20, 2017
    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.
     
  8. Sunshower

    Sunshower MDL Novice

    Feb 2, 2017
    7
    0
    0
    Where did you get batbox.exe?
     
  9. trikster

    trikster MDL Novice

    Aug 3, 2016
    5
    0
    0
    Thanks, adding batbox.exe to the toggle tweaker folder worked :worthy:
     
  10. Sunshower

    Sunshower MDL Novice

    Feb 2, 2017
    7
    0
    0

    Where did you get batbox.exe?
    my Ublock is blocking mediafire..
     
  11. trikster

    trikster MDL Novice

    Aug 3, 2016
    5
    0
    0
    Can't you disable it temporarily?
     
  12. Sunshower

    Sunshower MDL Novice

    Feb 2, 2017
    7
    0
    0
    Even though I diable UBlock, it wouldn't let me to download.
    Probably wrong link.
    What link did you use to download Batbox?
     
  13. trikster

    trikster MDL Novice

    Aug 3, 2016
    5
    0
    0
    Try using different browser maybe.
    I PM'ed you the link.
     
  14. Sunshower

    Sunshower MDL Novice

    Feb 2, 2017
    7
    0
    0
    Thanks. It worked!
     
  15. johnye_pt

    johnye_pt MDL Addicted

    Aug 26, 2010
    741
    380
    30
    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?
     
  16. Sunshower

    Sunshower MDL Novice

    Feb 2, 2017
    7
    0
    0
    Yes. I see batbox.exe in Temp folder.
    I think the reason was that I set my Temp folder to Ramdisk.
     
  17. Sunshower

    Sunshower MDL Novice

    Feb 2, 2017
    7
    0
    0
    Where would all the downloaded files be located? (eg. Uninstallers for Cortana and such)
     
  18. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    NOTE: To avoid the elevation glitching; use the tool from a folder on the system drive/partition.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Noxas

    Noxas MDL Novice

    Feb 5, 2014
    16
    0
    0
    same error no batbox.exe in temp...