New
#1
Changing date modified via scripting
Hi,
I would like to create some kind of batching script that replaces the date modified of many folders with their date created, any advice on what I should use to do this? I'm thinking JScript might do it, but I've not used that before, and not sure how to go about setting up to use it, or if it really is suitable.
The reason for this request, we have a media server shared on a local network, specifically an "incoming" folder that needs to be write enabled. When some users browse to folders inside incoming they create a thumbs.db file, which touches the containing folder's modified date. We could (and have) gotten those users to turn off that setting, but it only takes one person to mess it up, and has become a recurring problem over the years. Unfortunately, some other devices on the network (eg iPads) can not sort folders by date created, only date modified, so I would like to reset the folder dates automatically.
Any advice would be appreciated, thanks.
edit, after a bit more googling, it looks like powershell is the right tool for something like this, yes?
Last edited by bludgin; 05 Apr 2015 at 14:32.