TechSpot

Problems with syntax using Vista findstr command

By jgirone
Jan 2, 2010
  1. findstr /C:”Cannot repair member file” C:\windows\logs\cbs\cbs.log >sfcdetails.txt
    yields:

    FINDSTR: Cannot open repair
    FINDSTR: Cannot open member
    FINDSTR: Cannot open file"

    PLEASE HELP--AM TOO DUMB TO KNOW WHAT IS SYNTAXED INCORRECTLY
     
  2. Tmagic650

    Tmagic650 TS Ambassador Posts: 17,244   +234

    Try the system file checker - go to start > run and type in sfc /scannow. Note the space between the c and the /...
     
  3. LookinAround

    LookinAround Ex Tech Spotter Posts: 6,491   +183

    Either
    1) Put quotes around the full file path
    findstr /C:”Cannot repair member file” "C:\windows\logs\cbs\cbs.log" >sfcdetails.txt

    or
    2) Use a system variable in the file path
    findstr /C:”Cannot repair member file” %windir%\logs\cbs\cbs.log >sfcdetails.txt
     
Topic Status:
Not open for further replies.

Similar Topics

Add New Comment

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...