-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpips.cmd
More file actions
21 lines (16 loc) · 694 Bytes
/
pips.cmd
File metadata and controls
21 lines (16 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
setlocal enabledelayedexpansion
rem Minimize console window
if not DEFINED IS_MINIMIZED set IS_MINIMIZED=1 && start "" /min "%~dpnx0" %* && exit
rem Set-Execution policy is required, otherwise won't be able to run any scripts at all.
rem Get-Help about_Execution_Policies
rem Main possible options: -HideConsole -Debug
rem -Mta will eventually make the app crash even if has started normally
set pwsh_args=-Sta -NoProfile -NonInteractive -NoLogo -WindowStyle Minimized -Command
powershell %pwsh_args% "Set-ExecutionPolicy -Scope Process Bypass; Import-Module .\pips; Main -Debug"
if !errorlevel! neq 0 (
pause
)
rem Uncomment when debugging to see error messages
REM pause
exit