PC Review


Reply
Thread Tools Rate Thread

Re: For Statement

 
 
Brendon Rogers
Guest
Posts: n/a
 
      6th Oct 2003
You need an escape character "^"

Try:

FOR /F "Tokens=3-5" %%X IN ('DIR \ServerName\D$\ ^ | FIND /I "bytes free"')
DO ECHO %%X


"Barney" <(E-Mail Removed)> wrote in message
news:237c301c38c42$751582a0$(E-Mail Removed)...
> Why is the following script statement failing?
>
> FOR /F "Tokens=3-5" %%X IN ('DIR \ServerName\D$\
> |FIND /I "bytes free"') DO ECHO %%X
>
> The command interpretor returns the following:
>
> | was unexpected at this time.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reconcile Bank statement & Credit card statement & accounting data Bklynhyc Microsoft Excel Worksheet Functions 0 7th Oct 2009 10:07 PM
select statement into if statement in an event code (syntax error =?Utf-8?B?dG90YQ==?= Microsoft Access VBA Modules 1 12th Dec 2004 12:13 PM
Dlookup function in a SQL Statement giving Error Expected: End of Statement Edward S Microsoft Access 1 19th May 2004 03:41 AM
Dlookup function in a SQL Statement giving Error Expected: End of Statement Edward S Microsoft Access 1 17th May 2004 09:34 PM
How to chart a profit & loss statement/Profitability analysis statement in Excel Charts Belinda Microsoft Excel Charting 3 3rd May 2004 10:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:16 PM.