Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Change the following to set how old a folder should be before moving (days)
- OldFile := 7
- ; Change the following to the folder items should be moved FROM
- FromFolder = Priority
- ; Change the following to the folder items should be moved TO
- ToFolder = Automoved folders
- ; Do not change the following unless you know what you're doing!
- ; Alt + 1 is the default hotkey, if you know how to change it, change it on line 12.
- Return
- !1::
- Loop, %FromFolder%\*, 2
- {
- MoveTime = %A_Year%%A_MM%%A_DD%
- MoveTime -= OldFile
- FileTime:=A_LoopFileTimeModified
- StringTrimRight, FileTime, FileTime, 6
- If FileTime < %MoveTime%
- {
- FileMoveDir, %A_LoopFileFullPath%, %ToFolder%\%A_LoopFileName%
- }
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement