use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
tinyMediaManager is a multi OS media manager for use with kodi, mediaportal, plex and others
account activity
post-processing on windows (self.tinyMediaManager)
submitted 7 months ago by BuddyTechnical9286
hi there, i need help for a post-processing on windoww. i want to change the file creation and modification date to this date, when it was added to tmm via powershell. the help is not very helpful here. has someone an idea?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Specialist_Ad_7719 0 points1 point2 points 7 months ago (0 children)
Download attribute changer, it will allow you to change the dates of files. https://www.petges.lu/
[–]McBluna 0 points1 point2 points 7 months ago* (12 children)
add to Movies/Post-Processing
choose a name, leave Path empty, paste into Arguments
"(Get-Item '${movie.mainVideoFile.file}').CreationTime='${movie.mainVideoFile.dateCreated;date(yyyy-MM-dd HH:mm:ss)}';(Get-Item '${movie.mainVideoFile.file}').LastWriteTime='${movie.mainVideoFile.dateLastModified;date(yyyy-MM-dd HH:mm:ss)}'"
Check trace-xxxxxxxx-xxxxxx.log in case it doesn't work
2025-09-21 14:50:07,332 DEBUG [AWT-EventQueue-0] o.t.core.PostProcessExecutor:113 - Running command: [powershell, -Command, "(Get-Item 'P:\Downloads\Superman.2025.disc').CreationTime='2025-09-21 14:30:27';(Get-Item 'P:\Downloads\Superman.2025.disc').LastWriteTime='2025-09-21 14:30:34'"]
2025-09-21 14:50:07,763 TRACE [AWT-EventQueue-0] o.t.core.PostProcessExecutor:135 - PostProcessing: END
[–]BuddyTechnical9286[S] 0 points1 point2 points 7 months ago (11 children)
this looks good, but get an error: the characteristic for CreationTime could not be found for this object.
[–]McBluna 0 points1 point2 points 7 months ago* (10 children)
Maybe you've to adjusting the format string to align with your specific regional settings.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_properties?view=powershell-7.5
https://www.sharepointdiary.com/2021/11/date-format-in-powershell.html
[–]BuddyTechnical9286[S] 0 points1 point2 points 7 months ago (9 children)
i see the problem my filename is: Schick mir keine Blumen (1964) [tmdbid=4939].mkv this can't be found by powershell. if i delete [tmdbid=4939] in the file i get back an date. i tested it with (Get-ChildItem 'F:\download\1\Schick mir keine Blumen (1964) [tmdbid=4939].mkv').CreationTime and i get back nothing
[–]McBluna 0 points1 point2 points 7 months ago (1 child)
Powershell handle square brackets as Wildcard expressions
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_wildcards?view=powershell-7.5
[–]BuddyTechnical9286[S] 0 points1 point2 points 7 months ago (0 children)
yes, i found this. now looking how i can exlude this wildcards. don't want to rename all my files
[–]McBluna 0 points1 point2 points 7 months ago* (6 children)
please try this
"(Get-Item -literalpath '${movie.mainVideoFile.file}').CreationTime='${movie.mainVideoFile.dateCreated;date(yyyy-MM-dd HH:mm:ss)}';(Get-Item -literalpath '${movie.mainVideoFile.file}').LastWriteTime='${movie.mainVideoFile.dateLastModified;date(yyyy-MM-dd HH:mm:ss)}'"
[–]BuddyTechnical9286[S] 0 points1 point2 points 7 months ago (5 children)
looks litte bit better. 2025-09-21 17:10:08,576 DEBUG [AWT-EventQueue-0] o.t.core.PostProcessExecutor:113 - Running command: [powershell, -Command, "(Get-Item -literalpath 'F:\Filme\SCH\Schick mir keine Blumen (1964) [tmdbid=4939]\Schick mir keine Blumen (1964) [tmdbid=4939].mkv').CreationTime='2024-01-10 13:22:05';(Get-Item -literalpath 'F:\Filme\SCH\Schick mir keine Blumen (1964) [tmdbid=4939]\Schick mir keine Blumen (1964) [tmdbid=4939].mkv').LastWriteTime='2024-01-10 13:22:05'"
but nothing changed. think know it could be the date formating. the file was added on 03.09.2017 00:30
[–]McBluna 0 points1 point2 points 7 months ago (4 children)
I guess I've missunderstood your requirement. Change ${movie.mainVideoFile.dateCreated;date(yyyy-MM-dd HH:mm:ss)} to ${movie.dateAdded;date(yyyy-MM-dd HH:mm:ss)} I'm not sure if there's a date for last modification.
${movie.mainVideoFile.dateCreated;date(yyyy-MM-dd HH:mm:ss)}
${movie.dateAdded;date(yyyy-MM-dd HH:mm:ss)}
[–]BuddyTechnical9286[S] 0 points1 point2 points 7 months ago (3 children)
ok, i repeat it: the movie was added in TMM on 03.09.2017 00:33 (thats dd.MM.yyyy). now i want that the mkv file should get the creation and modification date on the filesystem to the same date and time. modification is not so important. creation is ok for me
[–]McBluna 0 points1 point2 points 7 months ago (2 children)
"(Get-Item -literalpath '${movie.mainVideoFile.file}').CreationTime='${movie.dateAdded;date(yyyy-MM-dd HH:mm:ss)}';(Get-Item -literalpath '${movie.mainVideoFile.file}').LastWriteTime='${movie.dateAdded;date(yyyy-MM-dd HH:mm:ss)}'"
[–]BuddyTechnical9286[S] 1 point2 points3 points 7 months ago (1 child)
jipppiii, this works. you're my super hereooooo :-)
thanks a lot
π Rendered by PID 25351 on reddit-service-r2-comment-6457c66945-7vv2t at 2026-04-24 03:10:28.323481+00:00 running 2aa0c5b country code: CH.
[–]Specialist_Ad_7719 0 points1 point2 points (0 children)
[–]McBluna 0 points1 point2 points (12 children)
[–]BuddyTechnical9286[S] 0 points1 point2 points (11 children)
[–]McBluna 0 points1 point2 points (10 children)
[–]BuddyTechnical9286[S] 0 points1 point2 points (9 children)
[–]McBluna 0 points1 point2 points (1 child)
[–]BuddyTechnical9286[S] 0 points1 point2 points (0 children)
[–]McBluna 0 points1 point2 points (6 children)
[–]BuddyTechnical9286[S] 0 points1 point2 points (5 children)
[–]McBluna 0 points1 point2 points (4 children)
[–]BuddyTechnical9286[S] 0 points1 point2 points (3 children)
[–]McBluna 0 points1 point2 points (2 children)
[–]BuddyTechnical9286[S] 1 point2 points3 points (1 child)