Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fn_OrganizeFolder(arcFolder,days){
- i := 0
- Loop, Files, %arcFolder%
- {
- fileDte = %A_LoopFileTimeModified%
- EnvSub, fileDte, %A_Now%, days
- ; MsgBox %fileDte% %days% (IfLess, %fileDte%, %days%) %A_LoopFileName%
- If fileDte < %days%
- {
- Destination := "C:\Users\austi\Documents\File Cabinet\Archive\" A_LoopFileName
- FileMove, %A_LoopFileFullPath%, %Destination%, 1
- i++
- if (ErrorLevel != 0) {
- MsgBox %ErrorCount% files/folders could not be moved.
- }
- }
- }
- return i
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement