Skip to content

Commit 8b2ea0f

Browse files
Create Classic.bat
1 parent 3aae460 commit 8b2ea0f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Samples-scripts/FR/Classic.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@echo off
2+
chcp 65001 > nul
3+
4+
if exist "%userprofile%"\tss\classic\classicthemetray.exe (echo Le thème classique est déjà activé) else (ren "%userprofile%\tss\classic\classicthemetray_old.exe" classicthemetray.exe
5+
echo Le thème classique a été activé)
6+
7+
Set BT5=uxsms.exe
8+
tasklist | find /i "%BT5%">nul && (TASKKILL /f /im uxsms.exe) || goto :1
9+
:1
10+
if exist "%userprofile%"\tss\basic\uxsms.exe (ren "%userprofile%\tss\basic\uxsms.exe" uxsms_old.exe
11+
echo Le thème basic a été désactivé) else (echo Le thème basic est déjà désactivé)
12+
13+
start "" /D "%USERPROFILE%\TSS\classic" classicthemetray.exe /enable
14+
15+
REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Windhawk\Engine\Mods\local@disable-dwm-extended-frames /v Disabled /f
16+
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Windhawk\Engine\Mods\local@disable-dwm-extended-frames /v Disabled /t REG_DWORD /d 0
17+
18+
set /P c=Voulez-vous redémarrer l'explorateur ?[Y\N]?
19+
if /I "%c%" EQU "Y" (TASKKILL /f /im explorer.exe
20+
goto :EX1)
21+
if /I "%c%" EQU "N" (goto :MSG)
22+
23+
:EX1
24+
Set 7+=7+ Taskbar Tweaker.exe
25+
tasklist | find /i "%7+%">nul && (TASKKILL /f /im "7+ Taskbar Tweaker.exe"
26+
goto :2) || goto :EX2
27+
28+
:EX2
29+
start explorer.exe
30+
timeout /t 5
31+
if exist "%userprofile%\AppData\Local\Programs\7+ Taskbar Tweaker\7+ Taskbar Tweaker.exe" (start "" /D "%userprofile%\AppData\Local\Programs\7+ Taskbar Tweaker" "7+ Taskbar Tweaker.exe")
32+
goto :MSG
33+
34+
:MSG
35+
echo Tâche terminée

0 commit comments

Comments
 (0)