Reputation: 11045
Windows 2008 server.
Is it possible to edit multiple tasks at the same time (batch update)?
I have several tasks. I want to edit the command line in the action tab. The tasks are automatically created by a build process and are executed later (single run). The task also removes itself, so there are no leftovers.
Upvotes: 1
Views: 3259
Reputation: 11045
Here is what I did to resolve my needs:
A sample line in the csv: "my task name","my new action"
The batch file content:
@echo off
for /F "tokens=1,2 delims=," %%a in (C:\temp\tasks.csv) do (
echo Fixing Task: %%a
schtasks /change /tn %%a /tr %%b /rp <password>
)
I hope this helps...
Upvotes: 2