本帖最后由 pdp320921 于 2011-11-2 22:06 编辑
- <?xml version="1.0" encoding="UTF-16"?>
- <Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
- <RegistrationInfo>
- <Date>2011-10-28T20:41:25</Date>
- <Author>3-14</Author>
- </RegistrationInfo>
- <Triggers>
- <TimeTrigger>
- <Repetition>
- <Interval>PT2M</Interval>
- <StopAtDurationEnd>false</StopAtDurationEnd>
- </Repetition>
- <StartBoundary>2011-10-28T20:41:00</StartBoundary>
- <Enabled>true</Enabled>
- </TimeTrigger>
- </Triggers>
- <Principals>
- <Principal id="Author">
- <RunLevel>LeastPrivilege</RunLevel>
- <UserId>3-14-PC\3-14</UserId>
- <LogonType>InteractiveToken</LogonType>
- </Principal>
- </Principals>
- <Settings>
- <MultipleInstancesPolicy>IgnoreNew</MultipleInstancesPolicy>
- <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
- <StopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
- <AllowHardTerminate>true</AllowHardTerminate>
- <StartWhenAvailable>false</StartWhenAvailable>
- <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
- <IdleSettings>
- <StopOnIdleEnd>true</StopOnIdleEnd>
- <RestartOnIdle>false</RestartOnIdle>
- </IdleSettings>
- <AllowStartOnDemand>true</AllowStartOnDemand>
- <Enabled>true</Enabled>
- <Hidden>false</Hidden>
- <RunOnlyIfIdle>false</RunOnlyIfIdle>
- <WakeToRun>false</WakeToRun>
- <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
- <Priority>7</Priority>
- </Settings>
- <Actions Context="Author">
- <Exec>
- <Command>C:\Users\3-14\AppData\Local\Temp\ac.bat</Command>
- </Exec>
- </Actions>
- </Task>
复制代码 文本如上
我想把- <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
- <stopIfGoingOnBatteries>true</StopIfGoingOnBatteries>
复制代码 改成- <DisallowStartIfOnBatteries>false</DisallowStartIfOnBatteries>
- <stopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
复制代码 试了几次for没成功,头疼
哪位大侠指点下!
感激! |