Oops. Ok, changes ... first $archiveFilename ...
$archiveFilename = generate-archivestring $destinationTimestamp "$stem-$exten" $exten second $archiveFilename $archiveFilename = generate-archivestring $destinationTimestamp "$stem-$exten" "zip" and new function generate-archivestring # MAKE ARCHIVE STRING FROM DATE, STEM, AND EXTEN function generate-archivestring { param( [datetime]$dt, [string]$pFilename, [string]$pExten) return "$pFilename-$(get-date -year $dt.year -month $dt.month -day $dt.day -hour $dt.hour -minute $dt.minute -second $dt.second -millisecond $dt.millisecond -f yyyy-MM-dd_HHmmss).$pExten" } I guess the main question is whether I should be using a "-" or a "." for the extension separator in the first part of the file name. I guess it doesn't matter as long as all strings are unique. Thanks! On Friday, August 2, 2019 at 11:49:37 AM UTC-7, @TiddlyTweeter wrote: > > I don't that pattern in tests here. I see the ".ext" in the stamp as > always "zip". > > TT > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2ec9f7c3-e759-4b5a-8bf3-42f11d3e9a9a%40googlegroups.com.