mck1012 <[EMAIL PROTECTED]> wrote on 04/08/2008 03:36:39 PM: > Did you try "Daily ADMNDEV002 SQL disk-only" in the text file.
That is the value in the text file, so I don't understand your question ... > > > > ----- Original Message ---- > From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > To: NT System Admin Issues <[email protected]> > Sent: Tuesday, April 8, 2008 3:32:23 PM > Subject: Windows shell script question > > > I have a script that looks like this ... > > FOR /F %a IN (List-of-Daily-Full-Groups.txt) DO mminfo -avot -q > "group=%a" -r "client,pool,volume,name,group,savetime(22),ssid, > ssflags,clflags" 1>>Volumes.txt > ) > > Now, the file "List-of-Daily-Full-Groups.txt" looks like this ... > > ADMNLTS003 > Daily ADMNDEV002 SQL disk-only > > The loop works fine for the value ADMNLTS003, but dies on the 2nd > entry. Apparently, it's stopping at the first space, so the loop is > executing as: > > mminfo -avot -q "group=Daily" -r "client,pool,volume,name,group, > savetime(22),ssid,ssflags,clflags" 1>>Volumes.txt > 6095:mminfo: no matches found for the query > > So what I need to know is ... how can I restructure my FOR loop so > that the value read from the file doesn't stop at the first space, > but instead is the whole line? (or until the delimiter <CR>, I > guess). I tried puting a special delimiter character at the end of > each entry ("ADMNLTS003\"), but can't seem to figure out how to then > strip the delimiter out of the variable ... > > Thanks > > > -- > Michael Leone > Network Administrator, ISM > Philadelphia Housing Authority > 2500 Jackson St > Philadelphia, PA 19145 > Tel: 215-684-4180 > Cell: 215-252-0143 > <mailto:[EMAIL PROTECTED]> > > > You rock. That's why Blockbuster's offering you one month of > Blockbuster Total Access, No Cost. > ~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~ ~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~
