CPN commit

This commit is contained in:
2026-01-22 22:05:35 +01:00
parent 686b7755c1
commit 2cd0081687

View File

@@ -10,11 +10,16 @@ echo ========================================
echo Batch Scripts Menu - Dynamic Loader echo Batch Scripts Menu - Dynamic Loader
echo ======================================== echo ========================================
echo. echo.
echo Powered by Weektab - weektab.org
echo Repository: git.weektab.org/companas/batch-scripts
echo.
echo ========================================
echo.
echo Scanning /files directory... echo Scanning /files directory...
echo. echo.
REM Use Gitea API to list files in /files directory REM Use Gitea API to list files in /files directory
powershell -Command "$ProgressPreference = 'SilentlyContinue'; try { $response = Invoke-RestMethod -Uri 'https://git.weektab.org/api/v1/repos/companas/batch-scripts/contents/files'; $batFiles = $response | Where-Object { $_.name -like '*.bat' } | Select-Object -ExpandProperty name; if ($batFiles) { $batFiles | Out-File '%TEMP%\repo_scripts.txt' -Encoding ASCII -NoNewline:$false } else { 'NONE' | Out-File '%TEMP%\repo_scripts.txt' -Encoding ASCII } } catch { 'ERROR' | Out-File '%TEMP%\repo_scripts.txt' -Encoding ASCII }" 2>nul powershell -Command "$ProgressPreference = 'SilentlyContinue'; try { $response = Invoke-RestMethod -Uri 'https://git.weektab.org/api/v1/repos/companas/batch-scripts/contents/files'; $batFiles = $response | Where-Object { $_.name -like '*.bat' } | Select-Object -ExpandProperty name | Sort-Object; if ($batFiles) { $batFiles | Out-File '%TEMP%\repo_scripts.txt' -Encoding ASCII -NoNewline:$false } else { 'NONE' | Out-File '%TEMP%\repo_scripts.txt' -Encoding ASCII } } catch { 'ERROR' | Out-File '%TEMP%\repo_scripts.txt' -Encoding ASCII }" 2>nul
if not exist "%TEMP%\repo_scripts.txt" ( if not exist "%TEMP%\repo_scripts.txt" (
echo ERROR: Unable to access repository API echo ERROR: Unable to access repository API