File actions

Have a suggestion for "Everything"? Please post it here.
Post Reply
soul4kills
Posts: 20
Joined: Mon Sep 04, 2023 4:12 am

File actions

Post by soul4kills »

It'll be interesting to see Everything have file actions performed if it fits a criteria. File type, Specific string in name etc. It'll be useful for auto sorting the default downloads folder for example.

Or it could be a plugin. Maybe it'll fit better as a plugin.
therube
Posts: 5152
Joined: Thu Sep 03, 2009 6:48 pm

Re: File actions

Post by therube »

Not quite sure what you're after, but you can set up batch file(s) that handle the "work" & hotkeys that initiate the batch files.

So your batch file could do something like...

cleanupDownloads.bat (pseudo-code):

Code: Select all

for %i in /downloads/
do
if *.zip move to /LIB/
if *.exe move to /PROG/
if *.txt move to /DOC/
if *.bills move to /TRASH/
done
echo ALL CLEANED UP :-)
pause
exit
& then you can assign a hotkey, say, Alt+D, that calls cleanupDownloads.bat.


(You'd need Everything 1.5 Alpha to do something like that.)
soul4kills
Posts: 20
Joined: Mon Sep 04, 2023 4:12 am

Re: File actions

Post by soul4kills »

Pretty much just that in your reply but with automation on files/folders, if it fits a criteria.

Could be managed similar to how filters are managed.

I have a bunch of batch scripts. Automation from everything would be a nice addition to it. Since it is already monitoring everything.
"This file fits your criteria, run this batch script on the file"
meteorquake
Posts: 541
Joined: Thu Dec 15, 2016 9:44 pm

Re: File actions

Post by meteorquake »

Perhaps a variation on this would be to have a search criterion, a command that is acted (either 1-by-1 or as a single call), and a frequency of check. I don't think scheduling would need to be very sophisticated, but a little bit of control.

So for example the search criterion might be "Uncompressed EXE files over 1 Mb", the action might be to compress them, and the check frequency might be daily.

David
Post Reply