Skip to content

Commit

Permalink
Startup
Browse files Browse the repository at this point in the history
  • Loading branch information
MaynardMiner committed May 3, 2019
1 parent af88043 commit 85b0fd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions startup.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$dir = (Split-Path $script:MyInvocation.MyCommand.Path)
$dir = Split-Path $script:MyInvocation.MyCommand.Path
$ParseArgs = Get-Content ".\SWARM.bat"
$Arguments = $ParseArgs | Select-String "startup.ps1"
$Arguments -match "startup.ps1 (?<content>.*)`"" | Out-Null
$Arguments = $matches['content']

Start-Process "CMD" -ArgumentList "/C powershell -version 5.0 -noexit -executionpolicy Bypass -windowstyle maximized -command `"$dir\swarm.ps1 $Arguments`"" -Verb RunAs
Start-Process "CMD" -ArgumentList "/C powershell -Version 5.0 -noexit -executionpolicy Bypass -windowstyle maximized -command `'$dir\swarm.ps1 $Arguments`'" -Verb RunAs

0 comments on commit 85b0fd9

Please sign in to comment.