Search thru local computer files and feed matching output to a class that consumes it.
1
stars
0
forks
source link
Add a new consumer base for the general library to launch cmd.exe, PowerShell to let user run arbitrary commands on it matches. #20
Closed
ShadowKnightMK4 closed 5 months ago
Add a base class an some example classes to let the user of the library be able to passs matched files to run an arbitrary command.
Example: command is set to del \"{0}\" /F /Q
This command force deletes a file without prompting without asking if it's ok on Windows cmd.exe.
We ask the search engine to look for files that are marked temporary.
The Serach engine is launched with this new consumer base and the software is now deleting files marked temporary that it can access.
Thoughts: A better command should make that built in and generate a list of files that fail to be deleted.