From 9b667a0f1276f48189157c642665b0a0d882091e Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:58:19 +0000 Subject: [PATCH] Update main.ps1 --- Global-PS-Trascription-to-Discord/main.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Global-PS-Trascription-to-Discord/main.ps1 b/Global-PS-Trascription-to-Discord/main.ps1 index a93a9ee..ca37144 100644 --- a/Global-PS-Trascription-to-Discord/main.ps1 +++ b/Global-PS-Trascription-to-Discord/main.ps1 @@ -108,15 +108,15 @@ if (-not (Test-Path `$transcriptDir)) { New-Item -Type Directory `$transcriptDir } -`$dateStamp = Get-Date -Format ((Get-culture).DateTimeFormat.SortableDateTimePattern -replace ':','-') +`$dateStamp = Get-Date -Format ((Get-culture).DateTimeFormat.SortableDateTimePattern -replace ':','.') try { - Start-Transcript "`$transcriptDir\Transcript-`$dateStamp.txt" | Out-Null + Start-Transcript "`$transcriptDir\Transcript.`$dateStamp.txt" | Out-File -FilePath "$transcriptDir\Transcripts_Logging.txt" -Append } catch [System.Management.Automation.PSNotSupportedException] { return -} +} "@ $scriptblock | Out-File -FilePath $Profile -Force