[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. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,256
    1,155
    60
  2. SightUp

    SightUp MDL Senior Member

    Aug 17, 2010
    259
    12
    10
    Add that Yasser Da Silva!
     
  3. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    i will add it to Disable Windows Defender
     
  4. SightUp

    SightUp MDL Senior Member

    Aug 17, 2010
    259
    12
    10
    I want 2.2 to be released, with the removal of apps function!
     
  5. TigTex

    TigTex MDL Senior Member

    Oct 5, 2009
    475
    381
    10
    #326 TigTex, Sep 6, 2015
    Last edited: Sep 6, 2015
    Yasser, take a look at lines 535 to 550. They look that are never used (they assign image file formats to windows photo viewer). When you add the ability to remove apps, it's a good time to call this function after removing the windows.photo app because, without those reg tweaks, jpegs (for example) will open with mspaint by default.

    At line 2293 you have a typo. "ssc" instead of "sc"
    Also lines 1953 to 1959 do the same that 1917 to 1925

    And yes, I read all the .bat files before testing them on my pc's, I'm that crazy :D
     
  6. gastro

    gastro MDL Member

    Jul 22, 2009
    121
    3
    10
    But it doesn't really show an option to enable or disable anything as each selection is only prefaced by an asterisk. Maybe I just don't quite understand the given instructions.
     
  7. M&J

    M&J MDL Junior Member

    Nov 30, 2012
    79
    17
    0
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. TziMmys

    TziMmys MDL Junior Member

    Aug 27, 2012
    70
    8
    0
    Yes, I said it before.This is a must be done....
     
  9. hamood10

    hamood10 MDL Novice

    Dec 12, 2013
    5
    2
    0
    #330 hamood10, Sep 7, 2015
    Last edited by a moderator: Apr 20, 2017
    Thanks
    there is a problem in 10. Enable/Disable Windows Defender

    Wrong
    Code:
    IF "%input%"=="10" (GOTO 37)
    Fixed
    Code:
    IF "%input%"=="10" (GOTO 38)
     
  10. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    Lol That's GREAT
    535>550 : they are used in line 209
    2293 : Nice remark
    1953>1959 & 1917>1925 : what's Wrong here ! :g:
     
  11. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30

    I added the ability to delete all apps and to reinstall them all
    but this selecting thing is not that easy
    when i post V2.2 with the code any one who can add the ability to select 3 or 4 apps he can send me a PM
     
  12. Xadiaris

    Xadiaris MDL Novice

    Apr 23, 2008
    34
    10
    0
    #333 Xadiaris, Sep 7, 2015
    Last edited by a moderator: Apr 20, 2017
    something like this ?

    Code:
    :: Hide Command and Set Scope
    @echo off
    setlocal EnableExtensions
    
    :: Customize Window
    title My Menu
    
    :: Menu Options
    :: Specify as many as you want, but they must be sequential from 1 with no gaps
    :: Step 1. List the Application Names
    set "App[1]=One"
    set "App[2]=Two"
    set "App[3]=Three"
    set "App[4]=Four"
    set "App[5]=Five"
    set "App[6]=All Apps"
    
    :: Display the Menu
    set "Message="
    :Menu
    cls
    echo.%Message%
    echo.
    echo.  Menu Title
    echo.
    set "x=0"
    :MenuLoop
    set /a "x+=1"
    if defined App[%x%] (
        call echo   %x%. %%App[%x%]%%
        goto MenuLoop
    )
    echo.
    
    :: Prompt User for Choice
    :Prompt
    set "Input="
    set /p "Input=Select what app:"
    
    :: Validate Input [Remove Special Characters]
    if not defined Input goto Prompt
    set "Input=%Input:"=%"
    set "Input=%Input:^=%"
    set "Input=%Input:<=%"
    set "Input=%Input:>=%"
    set "Input=%Input:&=%"
    set "Input=%Input:|=%"
    set "Input=%Input:(=%"
    set "Input=%Input:)=%"
    :: Equals are not allowed in variable names
    set "Input=%Input:^==%"
    call :Validate %Input%
    
    :: Process Input
    call :Process %Input%
    goto End
    
    
    :Validate
    set "Next=%2"
    if not defined App[%1] (
        set "Message=Invalid Input: %1"
        goto Menu
    )
    if defined Next shift & goto Validate
    goto :eof
    
    
    :Process
    set "Next=%2"
    call set "App=%%App[%1]%%"
    
    :: Run Installations
    :: Specify all of the installations for each app.
    :: Step 2. Match on the application names and perform the installation for each
    if "%App%" EQU "One" echo Run Install for App One here
    if "%App%" EQU "Two" echo Run Install for App Two here
    if "%App%" EQU "Three" echo Run Install for App Three here
    if "%App%" EQU "Four" echo Run Install for App Four here
    if "%App%" EQU "Five" echo Run Install for App Five here
    if "%App%" EQU "All Apps" (
        echo Run Install for All Apps here
    )
    
    :: Prevent the command from being processed twice if listed twice.
    set "App[%1]="
    if defined Next shift & goto Process
    goto :eof
    
    
    :End
    endlocal
    pause >nul
    
     
  13. SightUp

    SightUp MDL Senior Member

    Aug 17, 2010
    259
    12
    10
    Hurry!!!!!!!!!!!
     
  14. johnye_pt

    johnye_pt MDL Addicted

    Aug 26, 2010
    741
    380
    30
    Time is running out? Insert coin! :D
     
  15. slackeritguy

    slackeritguy MDL Member

    Jun 27, 2013
    163
    25
    10
    Excellent, gonna try this as soon as I get home.

    Btw, have you thought about adding the removal of unnecessary scheduled tasks?
     
  16. SightUp

    SightUp MDL Senior Member

    Aug 17, 2010
    259
    12
    10
    When are you going to go through the code and make sure there are no errors? I want to use it but with no errors.
     
  17. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30

    I added the removal of unnecessary services and i think that is enough
    because when you disable services they can't schedule tasks
    correct me if am wrong