XPSP3,没有问题- @echo off
- MD "%windir%\System32\GroupPolicy\User\Scripts"
- set "filename=%windir%\System32\GroupPolicy\User\Scripts\scripts.ini"
-
- echo. >>"%filename%"
- echo.[Logoff] >>"%filename%"
- echo.0CmdLine=C:\a.bat >>"%filename%"
- echo.0Parameters= >>"%filename%"
-
- pause
复制代码
|