okay maybe now it's fixed
This commit is contained in:
parent
58de9f534f
commit
0dcfba2fec
@ -105,7 +105,7 @@ $OfficeList | ForEach-Object -parallel {
|
|||||||
$Path = $_.FullName.Replace("'", "`'") #SQL Formatted Path
|
$Path = $_.FullName.Replace("'", "`'") #SQL Formatted Path
|
||||||
$projectnumber = $result.tostring()
|
$projectnumber = $result.tostring()
|
||||||
$DBConnect = New-SqliteConnection -DataSource $PathToDB_Copy
|
$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
|
$sql_result = Invoke-SqliteQuery -DataSource $PathToDB_Copy -Query $Query
|
||||||
|
|
||||||
if (($sql_result.project -eq $null)) {
|
if (($sql_result.project -eq $null)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user