[PS] Select-string "The file cannot not (sic) be read." error message

Discussion in 'Scripting' started by Andrew Watt [MVP], May 15, 2006.

  1. I was creating a file counter and line counter and used the
    select-string cmdlet to match selected regular expressions.

    With some files (not sure why yet) I get a "Select-string: file cannot
    not be read" error message.

    Note the double negative in the error message.

    Andrew Watt MVP
    Andrew Watt [MVP], May 15, 2006
    1. Advertisements

  2. Have you had a chance to file this on MS Connect yet?
    Lee Holmes [MSFT], May 16, 2006
    1. Advertisements

  3. Now done. 75819 on Connect.

    I was having Passport problems yesterday.

    Andrew Watt MVP

    Andrew Watt [MVP], May 16, 2006
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.