how to find filename with name RRS feed

  • General discussion

  • How to search filename which without filename but it has extension?

    Actually I am in processing of renaming those file which has % sign. There are some files in different folder which has name like %%%%%.txt or %%%%%.jpg or avian%.doc. So I am removing % from the file name, now after removing % I have filename like




    Now I want to search those filename which has no name but they extension. How can I found these type of files


    Tuesday, March 21, 2017 2:21 PM

All replies

  • Based on what you posted I believe the following should work for you.

    Get-childitem -path <Folderpath> | where-object {$_.name -like ".*"}

    Tuesday, March 21, 2017 2:26 PM