mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-08-05 07:35:53 +03:00
Improve "Install Service" menu (#15571)
This commit is contained in:
14
service.bat
14
service.bat
@@ -238,16 +238,22 @@ echo Pick one of the options:
|
|||||||
set "count=0"
|
set "count=0"
|
||||||
for /f "delims=" %%F in ('powershell -NoProfile -Command "Get-ChildItem -LiteralPath '.' -Filter '*.bat' | Where-Object { $_.Name -notlike 'service*' } | Sort-Object { [Regex]::Replace($_.Name, '(\d+)', { $args[0].Value.PadLeft(8, '0') }) } | ForEach-Object { $_.Name }"') do (
|
for /f "delims=" %%F in ('powershell -NoProfile -Command "Get-ChildItem -LiteralPath '.' -Filter '*.bat' | Where-Object { $_.Name -notlike 'service*' } | Sort-Object { [Regex]::Replace($_.Name, '(\d+)', { $args[0].Value.PadLeft(8, '0') }) } | ForEach-Object { $_.Name }"') do (
|
||||||
set /a count+=1
|
set /a count+=1
|
||||||
echo !count!. %%F
|
echo !count!. %%F
|
||||||
set "file!count!=%%F"
|
set "file!count!=%%F"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
echo 0. Exit
|
||||||
|
|
||||||
|
echo.
|
||||||
|
|
||||||
:: Choosing file
|
:: Choosing file
|
||||||
set "choice="
|
set "choice="
|
||||||
set /p "choice=Input file index (number): "
|
set /p "choice=Input option (0-!count!, default: 0): "
|
||||||
if "!choice!"=="" (
|
if "!choice!"=="" (
|
||||||
echo The choice is empty, exiting...
|
set "choice=0"
|
||||||
pause
|
)
|
||||||
|
|
||||||
|
if "!choice!"=="0" (
|
||||||
goto menu
|
goto menu
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user