Skip to content

Commit c699d91

Browse files
authored
Merge pull request #28 from Particular/handling-spaces-in-ps-path
Handling spaces in Powershell sripts path
2 parents 2e46033 + a831c17 commit c699d91

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Run.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ try
2424
switch ($input)
2525
{
2626
'1' {
27-
$args = [string]::Format('-NoExit -NoProfile -ExecutionPolicy Bypass -File ""{0}\existingDB.ps1""', $PSScriptRoot)
28-
Start-Process PowerShell.exe -ArgumentList $args -WorkingDirectory $PSScriptRoot -Verb runAs
27+
$args = [string]::Format('-NoExit -NoProfile -ExecutionPolicy Bypass -File "{0}\existingDB.ps1"', $PSScriptRoot)
28+
Start-Process PowerShell.exe -ArgumentList $args -WorkingDirectory $PSScriptRoot -Verb runAs
2929

3030
return
3131
}
3232
'2' {
33-
$args = [string]::Format('-NoExit -NoProfile -ExecutionPolicy Bypass -File ""{0}\localDB.ps1""', $PSScriptRoot)
33+
$args = [string]::Format('-NoExit -NoProfile -ExecutionPolicy Bypass -File "{0}\localDB.ps1"', $PSScriptRoot)
3434
Start-Process PowerShell.exe -ArgumentList $args -WorkingDirectory $PSScriptRoot -Verb runAs
3535

3636
return

0 commit comments

Comments
 (0)