Our management just gave us a new direction on supporting 0byte file backups...We're supposed to find all files backed up by the client and report them to the user to see if we should back them up or delete them off the tsm server. I'm a hardcore unix guy, and this would not be an issue, however, i have to do it on windows (xp to win7). Do you guys have any ideas using windows powershell or a .bat script to do this?
inside of unix i would do something like this...
/bin/sh
CMD=${DSMCPATH}dsmc q backup | grep 0 bytes # very basic i know, just getting the point across
for x in ${CMD}
do
echo "FILE ${X} is 0 bytes" | tee -a ${OUTPUT}
done
mailx -s "file - 0 bytes" [email protected] < ${OUTPUT}
Any ideas? I have never written a script in windows and have no clue...
inside of unix i would do something like this...
/bin/sh
CMD=${DSMCPATH}dsmc q backup | grep 0 bytes # very basic i know, just getting the point across
for x in ${CMD}
do
echo "FILE ${X} is 0 bytes" | tee -a ${OUTPUT}
done
mailx -s "file - 0 bytes" [email protected] < ${OUTPUT}
Any ideas? I have never written a script in windows and have no clue...