windows更換桌布指令碼

geeyeek發表於2016-01-22
VBS:
----------
set ws=createobject("wscript.shell")
ws.regwrite "HKCU\Control Panel\Desktop\wallpaper","圖片路徑","REG_SZ"
ws.run "RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters"
----------
BAT:
----------
@echo off
reg add "hkcu\control panel\desktop" /v "wallpaper" /d "圖片路徑" /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters

相關文章