![]() $h = ($i in ls $pwd.path *.cs -r -file | ? DirectoryName -notlike ("*\" + $excludeFolder + "\*")) Īssuming it works, that's what it does, anyway.Įdit branch of topic I keep thinking there ought to be a way to do this with the things in the System.Data namespace. The current code: $excludeFolder = "Includes" When I say "improve", I mean it makes it shorter, more elegant or with better performance.Īny help from anyone would be greatly appreciated. I will accept any answer that improves my script, but I'll wait a few days before accepting the answer. I can assume at least PowerShell 3 being used. I've had less than 24 hours experience with PowerShell so I have a feeling there's a better way. I wrote the following PowerShell script which works, but I'm not sure if there's an easier way to do it. path exist in any other folder under c:\s, recursively. When you use duplicate file finder to remove duplicate files, you may delete some important files by mistake. If You Delete Some Important Files by Mistake. You can select your preferred one to find and delete duplicate files on your computer. One of the sub-folders is called "c:\s\Includes" which can contain one or more. The above are the top 4 duplicate file finders. I have a source tree, say c:\s, with many sub-folders. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |