Sorry, got it:
FOR /F %%a IN ('"vshadow -q | grep "SNAPSHOT ID" | cut -f 5 -d " ""') DO (
vshadow.exe -ds=%%a
)
I should really become proficient in a useful language :)
From: Joseph L. Casale [mailto:[email protected]]
Sent: Wednesday, June 10, 2009 10:15 AM
To: NT System Admin Issues
Subject: More batch help
Hey Guys,
What's the trick for getting a long command executed in a for loop:
FOR /F %%a IN (vshadow -q | grep "SNAPSHOT ID" | cut -f 5 -d " ") DO (
echo %%a
)
As an example?
Thanks!
jlc
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~