Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: RunAsTI.cmd #934

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/playbook/Executables/AtlasModules/Scripts/RunAsTI.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<# : batch portion
@echo off

setlocal EnableDelayedExpansion
goto RunAsTI-Elevate

----------------------------------------
Expand All @@ -27,14 +27,14 @@ whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
:RunAsTI-Elevate
if "%~1" == "" (
set /P program_path="Enter the valid path of the program or drag it here: "
if "%program_path%" == "" (
if "!program_path!" == "" (
echo error: no input
timeout /t 1 > nul
cls
goto RunAsTI-Elevate
)

call :RunAsTI %program_path%
call :RunAsTI !program_path!
exit /b 1
)

Expand Down Expand Up @@ -143,4 +143,4 @@ Catch {
Write-Host Where: $PSItem.ScriptStackTrace -ForegroundColor Red
}
exit $exitcode
}
}