Re: More batch help

2009-06-10 Thread Ben Scott
On Wed, Jun 10, 2009 at 3:40 PM, Joseph L. Casale wrote: > So a carat is a windows escape char in a shell? In CMD.EXE, some of the meta-characters can be escaped with the caret (^). The redirection operators, I think the ampersand, maybe one or two others. Not all. (In particular, not the com

Re: More batch help

2009-06-10 Thread Micheal Espinola Jr
From:* mikeMitchell [mailto:its.m...@analogy.ca] > *Sent:* Wednesday, June 10, 2009 1:00 PM > *To:* NT System Admin Issues > *Subject:* RE: More batch help > > > > for /f %%a in ('vshadow -q ^| grep "SNAPSHOT ID" ^| cut -f 5 -d " " ') do > echo %%a > >

RE: More batch help

2009-06-10 Thread Joseph L. Casale
So a carat is a windows escape char in a shell? Or is this something specific to a pipe? Thanks! jlc From: mikeMitchell [mailto:its.m...@analogy.ca] Sent: Wednesday, June 10, 2009 1:00 PM To: NT System Admin Issues Subject: RE: More batch help for /f %%a in ('vshadow -q ^| grep "S

RE: More batch help

2009-06-10 Thread mikeMitchell
vbscript is 'everywhere' in the windows world; powershell's on the way to being everywhere, but hasn't arrived yet. -Original Message- From: Joseph L. Casale [mailto:jcas...@activenetwerx.com] Sent: Wednesday, June 10, 2009 11:02 am To: NT System Admin Issues Sub

RE: More batch help

2009-06-10 Thread mikeMitchell
for /f %%a in ('vshadow -q ^| grep "SNAPSHOT ID" ^| cut -f 5 -d " " ') do echo %%a Pipes in the inside bit need to be escaped with hat... ^| The command line within the parens should be surrounded by single quote. From: Joseph L. Casale [mailto:jcas...@activenetwerx.com] Sent: Wednesday,

Re: More batch help

2009-06-10 Thread Kurt Buff
> To: NT System Admin Issues > Subject: Re: More batch help > > Perl! > > Let the language wars begin... > > Heh. > > On Wed, Jun 10, 2009 at 09:22, Joseph L. > Casale wrote: >> Sorry, got it: >> >> FOR /F %%a IN ('"vshadow -q | grep

RE: More batch help

2009-06-10 Thread Joseph L. Casale
: More batch help Perl! Let the language wars begin... Heh. On Wed, Jun 10, 2009 at 09:22, Joseph L. Casale wrote: > Sorry, got it: > > FOR /F %%a IN ('"vshadow -q | grep "SNAPSHOT ID" | cut -f 5 -d " ""') DO ( > > vshadow.exe

Re: More batch help

2009-06-10 Thread Kurt Buff
Perl! Let the language wars begin... Heh. On Wed, Jun 10, 2009 at 09:22, Joseph L. Casale wrote: > 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 lan

RE: More batch help

2009-06-10 Thread Joseph L. Casale
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:jcas...@activenetwerx.com] Sent: Wednesday, June 10, 2009 10:15 AM To: NT System