mirror of
https://github.com/Flowseal/zapret-discord-youtube.git
synced 2026-03-08 11:25:28 +00:00
Fixed output of .bat file list (#9027)
Some checks failed
Close stale issues / stale (push) Has been cancelled
Some checks failed
Close stale issues / stale (push) Has been cancelled
This commit is contained in:
@@ -203,7 +203,7 @@ set "LISTS_PATH=%~dp0lists\"
|
|||||||
:: Searching for .bat files in current folder, except files that start with "service"
|
:: Searching for .bat files in current folder, except files that start with "service"
|
||||||
echo Pick one of the options:
|
echo Pick one of the options:
|
||||||
set "count=0"
|
set "count=0"
|
||||||
for /f "delims=" %%F in ('powershell -Command "Get-ChildItem -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"
|
||||||
|
|||||||
@@ -384,7 +384,7 @@ $dpiTargets = Build-DpiTargets -CustomUrl $dpiCustomUrl
|
|||||||
# Config
|
# Config
|
||||||
$targetDir = $rootDir
|
$targetDir = $rootDir
|
||||||
if (-not $targetDir) { $targetDir = Split-Path -Parent $MyInvocation.MyCommand.Path }
|
if (-not $targetDir) { $targetDir = Split-Path -Parent $MyInvocation.MyCommand.Path }
|
||||||
$batFiles = Get-ChildItem -Path $targetDir -Filter "*.bat" | Where-Object { $_.Name -notlike "service*" } | Sort-Object { [Regex]::Replace($_.Name, "\d+", { $args[0].Value.PadLeft(8, "0") }) }
|
$batFiles = Get-ChildItem -Path $targetDir -Filter "*.bat" | Where-Object { $_.Name -notlike "service*" } | Sort-Object { [Regex]::Replace($_.Name, "(\d+)", { $args[0].Value.PadLeft(8, "0") }) }
|
||||||
|
|
||||||
$globalResults = @()
|
$globalResults = @()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user