最近在学批处理,小白一枚,想实现用cmd命令行换桌面壁纸
网上的代码都是win7的,有没有大神帮忙看一下win10的怎么写?
网上的代码是这样的:
@echo offtitle 更改桌面背景的批处理:reg add "hkcu\control panel\desktop" /v wallpaper /d "c:\test\test.jpg" /fRunDll32.exe USER32.DLLUpdatePerUserSystemParameter
运行之后显示USER32.DLL出错。。
RunDll32.exe USER32.DLLUpdatePerUserSystemParameters
USER32.DLL后面貌似少了逗号。