Finding Multiple Strings in Multiple Files and outputting a report showing which files contained which strings
Posted: 02 Mar 2022 07:56
Hey everyone! I'm very new to batch scripting - I have some python and VBA experience, but batching is new to me
I'm trying to use a list of employee names from a termination list and search the files within a folder that contains the application lists of all the company's apps. This way if the employee appears on a user list, we know which app we must remove them from.
For example:
Termination List.txt - The list of employee names. With each name on a new line:
Ex:
John Doe
Jane Smith
etc
Folder containing all the Application user lists: "C:\Desktop\Application Userlists"
The user lists are in various formats: App1.xlsx, App2.csv, App3.pdf
The output file I'm aiming for:
TerminationScanner.xlsx or TerminationScanner.txt, etc - The file would show which employees appear on which lists:
App1.xlsx: John Doe, Jane Smith
App2.csv: Jane Smith
App3.pdf: Jon Doe
I've been trying to look at various websites and forums to try and understand it, but couldn't quite piece them together to make this.
Any help would be greatly appreciated! And if you can help me, if you could also explain how it would work I'd appreciate it even more as I do want to learn!
I'm trying to use a list of employee names from a termination list and search the files within a folder that contains the application lists of all the company's apps. This way if the employee appears on a user list, we know which app we must remove them from.
For example:
Termination List.txt - The list of employee names. With each name on a new line:
Ex:
John Doe
Jane Smith
etc
Folder containing all the Application user lists: "C:\Desktop\Application Userlists"
The user lists are in various formats: App1.xlsx, App2.csv, App3.pdf
The output file I'm aiming for:
TerminationScanner.xlsx or TerminationScanner.txt, etc - The file would show which employees appear on which lists:
App1.xlsx: John Doe, Jane Smith
App2.csv: Jane Smith
App3.pdf: Jon Doe
I've been trying to look at various websites and forums to try and understand it, but couldn't quite piece them together to make this.
Any help would be greatly appreciated! And if you can help me, if you could also explain how it would work I'd appreciate it even more as I do want to learn!