Нет описания

RestoreWallpaper.bat 761B

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

Powered by TurnKey Linux.