Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Optimize code
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsAddict committed Dec 2, 2023
1 parent 1418358 commit 08dbac0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions IAS.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,23 @@ exit /b
if %_unattended%==1 set wtrel=1
for %%# in (%_args%) do (if /i "%%#"=="-wt" set wtrel=1)

if %winbuild% GEQ 17763 (
set terminal=1

if %winbuild% GEQ 17763 if not defined wtrel (
if not defined wtrel (
set test=TermTest-%random%
title !test!
%psc% "(Get-Process | Where-Object { $_.MainWindowTitle -like '*!test!*' }).ProcessName" | find /i "cmd" %nul1% && (set terminal=)
title %comspec%
)

if %winbuild% GEQ 17763 if defined terminal if not defined wtrel (
if defined terminal if not defined wtrel (
start conhost.exe "!_batf!" %_args% -wt
exit /b
)

for %%# in (%_args%) do (if /i "%%#"=="-wt" set terminal=)
)

::========================================================================================================================================

Expand Down

0 comments on commit 08dbac0

Please sign in to comment.