It works! Thanks a ton. On Tuesday, August 3, 2021 at 7:03:46 PM UTC+8 Bastien Dumont wrote: > As indicated here ( > https://docs.microsoft.com/en-us/dotnet/api/system.io.fileinfo), the > FileInfo class has a modifiable LastWriteTime property, so this should work: > > gci -r -i *.docx |foreach{$docxtitle=$_.basename+".docx"; > $txttitle=$_.basename+".txt" ; $lastwritetime=$_.lastwritetime ; pandoc -s > $docxtitle -o $txttitle ; (gci $txttitle).lastwritetime=$lastwritetime} > > Le Tuesday 03 August 2021 à 01:24:48AM, Radish Records a écrit : > > I'm using > > > > gci -r -i *.docx |foreach{$title=$_.basename+".docx"; pandoc -s $title -o > > $title+".txt"} > > > > in powershell to convert 600~ documents into txt format. However it > changes the > > last modified date to the moment i run the script. > > I need the last modified date to stay the same for organisation > purposes, how > > do i go about this? > > > > -- > > You received this message because you are subscribed to the Google Groups > > "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email > > to [1]pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [2] > https://groups.google.com/d/msgid/ > > pandoc-discuss/19cdc731-930e-4717-a0af-078bb9b4ad42n%40googlegroups.com. > > > > References: > > > > [1] mailto:pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [2] > https://groups.google.com/d/msgid/pandoc-discuss/19cdc731-930e-4717-a0af-078bb9b4ad42n%40googlegroups.com?utm_medium=email&utm_source=footer > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/81e20ff2-d1af-4472-acc2-46d444c25fd4n%40googlegroups.com.