getting data from multilple folders

%3CLINGO-SUB%20id%3D%22lingo-sub-2103940%22%20slang%3D%22en-US%22%3Egetting%20data%20from%20multilple%20folders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2103940%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Expert%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20get%20data%20from%20particular%20folder%20but%20not%20from%20multiple%20folders%20and%20sub%20folders%20specially%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EGet-ChildItem%20-Path%20C%3A%5Ccheck%5Ctwo%20-recurse%20%7C%20Select-String%20-Pattern%20%22http%3A%2F%2F%22%20%7C%20%60%20Select-Object%20-Property%20Path%2CLineNumber%2CLine%20%7C%20%60%20Export-CSV%20%22C%3A%5Ccheck%5CResultFile.csv%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EShree%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2103940%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Edata%20from%20multiple%20folders%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2104474%22%20slang%3D%22en-US%22%3ERe%3A%20getting%20data%20from%20multilple%20folders%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2104474%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F665447%22%20target%3D%22_blank%22%3E%40Shree2280%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESuggestion%20please%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

 

Hi Expert,

I am trying to get data from particular folder but not from multiple folders and sub folders specially

 

Get-ChildItem -Path C:\check\two -recurse | Select-String -Pattern "http://" | ` Select-Object -Property Path,LineNumber,Line | ` Export-CSV "C:\check\ResultFile.csv"

 

Shree

1 Reply

@Shree2280 

 

Suggestion please