Advertisement
Doug4347

Auto Folder Mover

Aug 27th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Change the following to set how old a folder should be before moving (days)
  2. OldFile := 7
  3. ; Change the following to the folder items should be moved FROM
  4. FromFolder = Priority
  5. ; Change the following to the folder items should be moved TO
  6. ToFolder = Automoved folders
  7.  
  8. ; Do not change the following unless you know what you're doing!
  9. ; Alt + 1 is the default hotkey, if you know how to change it, change it on line 12.
  10. Return
  11.  
  12. !1::
  13. Loop, %FromFolder%\*, 2
  14. {
  15.     MoveTime = %A_Year%%A_MM%%A_DD%
  16.     MoveTime -= OldFile
  17.     FileTime:=A_LoopFileTimeModified
  18.     StringTrimRight, FileTime, FileTime, 6
  19.     If FileTime < %MoveTime%
  20.     {
  21.         FileMoveDir, %A_LoopFileFullPath%, %ToFolder%\%A_LoopFileName%
  22.     }
  23. }
  24. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement