Need vbscript to run a backup application commands multiple times
Hi experts
I Need vbscript to run a backup application commands multiple times and display its output or save it output in text file.
earlier i had linux servers so do certain tasks like related to backup application line updating clients for WOFB n VSS , making clients offine was fairly simple task.
create a file on /tmp/ . update serverlist in it. then simple for loop would do the trick. no fancy script required.
for i in `cat serverlist`; do echo $i; /usr/openv/netbackup/bin/admincmd/bpclient -client $i -add -WOFB_enabled 1 -WOFB_FIM 1 -WOFB_usage 0 -WOFB_error 1; done
but now i hav windows OS based server please share windows based .VBS script which performs same function as about unix script.
Something like ForEach ($i in (Get-Content -Path <..>)){bpclient $i -add ... etc etc
and you can even use 'cat' as an alias for Get-Content... - pjgeutjens 10 years ago
If someone else wants to do it, fine, but I'm not going to spoonfeed you this one. - pjgeutjens 10 years ago