question

mehta.parth09 avatar image
mehta.parth09 asked

Move files to new folder based on modified date/created date using Powershell

Hello, I have "History" folder which consist 3000+ text files and so I would like to automate the process which is moving files based on their modified date/created date to new folder. For E.g. Whatever the files which got created in past 1 month that should move to new folder (Powershell script should create new folder every time when moving) and after moving the files to folder, that folder should get zip. Can anyone please help me with this requirement.
sql-serverpowershellautomationfilesmove
1 comment
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

What should the new folder be called? What have you tried thus far?
0 Likes 0 ·

1 Answer

· Write an Answer
perrywhittle avatar image
perrywhittle answered
its fairly easy to do, have you not tried yourself?
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.