Explorar el Código

Upload files to ''

Ethan hace 3 años
padre
commit
f3b193b19b
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19
    0
      RestoreWallpaper.bat

+ 19
- 0
RestoreWallpaper.bat Ver fichero

@@ -0,0 +1,19 @@
1
+@echo off
2
+echo Old usernames are:
3
+for /d %%A in (C:\OldDrv\Users\*) do echo %%~nxA
4
+
5
+set /p oldusername="Enter the old username: "
6
+set filepath="C:\OldDrv\Users\%oldusername%\AppData\Roaming\Microsoft\Windows\Themes\TranscodedWallpaper"
7
+
8
+if exist %filepath% (
9
+    ren %filepath% TranscodedWallpaper.jpeg
10
+    reg add "HKCU\Control Panel\Desktop" /v Wallpaper /t REG_SZ /d "%~dp0TranscodedWallpaper.jpeg" /f
11
+    reg add "HKCU\Control Panel\Desktop" /v WallpaperStyle /t REG_SZ /d 2 /f
12
+    reg add "HKCU\Control Panel\Desktop" /v TileWallpaper /t REG_SZ /d 0 /f
13
+    RUNDLL32.EXE user32.dll, UpdatePerUserSystemParameters ,1 ,True
14
+) else (
15
+    echo The specified file does not exist. Please check the old username and try again.
16
+    pause
17
+)
18
+
19
+exit

Powered by TurnKey Linux.