troubleshooting Question

Finding duplicate files and date created/modified with batch or script

Avatar of bfason
bfasonFlag for United States of America asked on
Microsoft DOSVB ScriptPowershell
22 Comments1 Solution854 ViewsLast Modified:
Hello experts,

I need assistance finding instances of files on windows share based on a list provided by grep output from an archive source.

File names contain spaces and commas and I want to llimit the search to the dept directories and it's subdirectories

contents of filelist.txt

/depta/sub1/sub2/test, file.doc
/deptb/sub1/sub2/sub3/sub4/another, test file.doc

For the first line I need to search "P:\depta" and all subdirectories for all instances of "test, file.doc". The data I need on each instance of the file is full path, file size, date modified and date created.

I thought I might be able to use the for command but couldn't quite wrap my head around how to get just the first and last token.

But I know there are tons of experts out there with way better skills that could probably do this in their sleep!

Thanks in advance!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 22 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 22 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros