[THIN] Re: OT - for statement question

  • From: "Arthur Reyes" <artadmin@xxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 25 Aug 2004 22:10:55 -0500

Oops - forgot to give credit where it is do.  This is my favorite DOS
refresher site:

http://www.robvanderwoude.com/



-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of cherie.watts
Sent: Wednesday, August 25, 2004 7:49 PM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] OT - for statement question


Hi Guys

I know there are some for statement guru's on the list and I was wondering
if you could assist me with some syntax questions.

I am trying to run the following command but am having problems.

C:\Admin\printing>for /F "usebackq" %i in ('dir /b |find /I "driverlist"')
do ec
ho %i >>totallist.txt
| was unexpected at this time.


I understand that the problem is recognizing that ('dir /b |find /I
"driverlist"') is not being passed(for lack of a better work) to for command
as a complete command.

I have often had problems with this feature of the for statement. Is there a
way to clearly define/encapsulate the command I want to pass into the for
command?

I can get around this problem in 2 steps, but it is so much cooler to do it
all in memory in 1 step.

Thanks

Cherie
                                                                      

********************************************************
This Weeks Sponsor RTO Software
Do you know which applications are abusing your CPU and memory?
Would you like to learn? --   Free for a limited time!
Get the RTO Performance Analyzer to quickly learn the applications,
users, and time of day possible problems exist.
http://www.rtosoft.com/enter.asp?id=320
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm


********************************************************
This Weeks Sponsor RTO Software
Do you know which applications are abusing your CPU and memory?
Would you like to learn? --   Free for a limited time!
Get the RTO Performance Analyzer to quickly learn the applications,
users, and time of day possible problems exist.
http://www.rtosoft.com/enter.asp?id=320
********************************************************** 
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm

Other related posts: