当前位置: 首页 > 工具软件 > KiXtart > 使用案例 >

计算机屏保代码,AD 脚本kixtart运用之五(用户电脑屏保设置)(示例代码)

夏祺然
2023-12-01

只需要在kixtart.kix中添加如下内容

------------------------------

IF EXIST ("%userprofile%\$ScreenRes.scr")

WriteValue("HKEY_CURRENT_USER\Control Panel\Desktop", "SCRNSAVE.EXE", "%userprofile%\$ScreenRes.scr", "Reg_SZ")

GOTO screensaver

ENDIF

IF EXIST("%logonserver%\netlogon\screensaver\$ScreenRes.scr")

copy "%logonserver%\netlogon\screensaver\$ScreenRes.scr" "%userprofile%\$ScreenRes.scr" /c /r

WriteValue("HKEY_CURRENT_USER\Control Panel\Desktop", "SCRNSAVE.EXE", "%userprofile%\$ScreenRes.scr", "Reg_SZ")

ELSE

IF EXIST ("%userprofile%\NEO2017.scr")

WriteValue("HKEY_CURRENT_USER\Control Panel\Desktop", "SCRNSAVE.EXE", "%userprofile%\NEO2017.scr", "Reg_SZ")

GOTO screensaver

ELSE

copy "%logonserver%\netlogon\screensaver\NEO2017.scr" "%userprofile%\NEO2017.scr" /c /r

WriteValue("HKEY_CURRENT_USER\Control Panel\Desktop", "SCRNSAVE.EXE", "%userprofile%\NEO2017.scr", "Reg_SZ")

ENDIF

ENDIF

:screensaver

 类似资料: