diff --git a/menu-launcher.bat b/menu-launcher.bat index 80a0387..22c0b18 100644 --- a/menu-launcher.bat +++ b/menu-launcher.bat @@ -10,11 +10,16 @@ echo ======================================== echo Batch Scripts Menu - Dynamic Loader echo ======================================== echo. +echo Powered by Weektab - weektab.org +echo Repository: git.weektab.org/companas/batch-scripts +echo. +echo ======================================== +echo. echo Scanning /files directory... echo. 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" ( echo ERROR: Unable to access repository API