As a general thing - filenames with spaces in, will need double quotes when used as variables. Neil > -----Original Message----- > From: Phil.Hillary@xxxxxxxxxxxxxxxxxx > [mailto:Phil.Hillary@xxxxxxxxxxxxxxxxxx] > Sent: 03 December 2002 11:41 > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Very OT: FINDSTR command > > Hi all > > I know this is OT so understand if I get no replies to it, > but this list is such an excellent source of information and > I don't know where else to try. > > We've been tasked with searching through our file servers for > any files which contain 2 strings of information. As there > are thousands of files to search through, we're using the > following for command: > > for /f %a in ('findstr /I /M /C:"nw2 4er" *.*') do > findstr /I /M /C:"se1 7sd" %a > > The problem we're having is it doesn't seem to be working on > file names with spaces in it and says it cannot open the > file. Anyone have any ideas? *********************************************************************** This e-mail and its attachments are intended for the above named recipient(s) only and are confidential and may be privileged. If they have come to you in error you must take no action based on them, nor must you copy or disclose them or any part of their contents to any person or organisation; please notify the sender immediately and delete this e-mail and its attachments from your computer system. Please note that Internet communications are not necessarily secure and may be changed, intercepted or corrupted. We advise that you understand and observe this lack of security when e-mailing us and we will not accept any liability for any such changes, interceptions or corruptions. Although we have taken steps to ensure that this e-mail and its attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. Copyright in this e-mail and attachments created by us belongs to Littlewoods. Littlewoods takes steps to prohibit the transmission of offensive, obscene or discriminatory material. If this message contains inappropriate material please forward the e-mail intact to postmaster@xxxxxxxxxxxxxxxxx and it will be investigated. Statements and opinions contained in this e-mail may not necessarily represent those of Littlewoods. Please note that e-mail communication may be monitored. Registered office: Littlewoods Retail Limited, Sir John Moores Building, 100 Old Hall Street, Liverpool, L70 1AB Registered no: 421258 http://www.littlewoods.com *********************************************************************** *********************************************** This Weeks Sponsor: Jetro Platforms Introducing the first multi-protocol server-based computing solution. Jetro CockpIT and BoostIT allow enterprises to centrally manage applications in Web, local applications and server-based computing protocols. http://www.jp-inc.com ************************************************ For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link. http://thethin.net/citrixlist.cfm