From 0dcfba2fecba89e48d353078b6331c23e435e1ad Mon Sep 17 00:00:00 2001 From: eeckert Date: Wed, 27 Sep 2023 14:30:26 -0600 Subject: [PATCH] okay maybe now it's fixed --- Get-ProjectFolders.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Get-ProjectFolders.ps1 b/Get-ProjectFolders.ps1 index 83d6207..4ba6da5 100644 --- a/Get-ProjectFolders.ps1 +++ b/Get-ProjectFolders.ps1 @@ -105,7 +105,7 @@ $OfficeList | ForEach-Object -parallel { $Path = $_.FullName.Replace("'", "`'") #SQL Formatted Path $projectnumber = $result.tostring() $DBConnect = New-SqliteConnection -DataSource $PathToDB_Copy - $Query = "Select Project FROM FolderData where Project = '$ProjectNumber' AND Server = '$Server' AND Path = '$Path';" + $Query = "Select Project FROM FolderData where Project = '$ProjectNumber' AND Server = '$Server' AND Path = `"$Path`";" $sql_result = Invoke-SqliteQuery -DataSource $PathToDB_Copy -Query $Query if (($sql_result.project -eq $null)) {