Menu Launcher
This commit is contained in:
12
batchr.bat
12
batchr.bat
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
REM === Dynamic WBS Menu Launcher ===
|
||||
REM Repository: https://git.weektab.org/companas/batch-scripts
|
||||
REM === Batchr Menu Launcher ===
|
||||
REM Repository: https://git.weektab.org/companas/batchr
|
||||
REM Powered by Weektab
|
||||
REM Author: Flamur Veliqi (Netbie)
|
||||
|
||||
@@ -8,13 +8,13 @@ setlocal enabledelayedexpansion
|
||||
|
||||
:MENU
|
||||
cls
|
||||
echo WBS Menu - Dynamic Loader
|
||||
echo Batchr Menu Launcher
|
||||
echo.
|
||||
echo Powered by Weektab
|
||||
echo Web: www.weektab.org
|
||||
echo E-Mail: support@weektab.org
|
||||
echo Project: Companas
|
||||
echo Repository: git.weektab.org/companas/batch-scripts
|
||||
echo Repository: git.weektab.org/companas/batchr
|
||||
echo.
|
||||
echo //////////////////////////////////////////////////
|
||||
echo.
|
||||
@@ -22,7 +22,7 @@ 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 | 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
|
||||
powershell -Command "$ProgressPreference = 'SilentlyContinue'; try { $response = Invoke-RestMethod -Uri 'https://git.weektab.org/api/v1/repos/companas/batchr/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
|
||||
@@ -103,7 +103,7 @@ cls
|
||||
echo /// Executing: !SCRIPT_NAME[%CHOICE%]!
|
||||
echo.
|
||||
|
||||
set "SCRIPT_URL=https://git.weektab.org/companas/batch-scripts/raw/branch/main/files/!SCRIPT_NAME[%CHOICE%]!"
|
||||
set "SCRIPT_URL=https://git.weektab.org/companas/batchr/raw/branch/main/files/!SCRIPT_NAME[%CHOICE%]!"
|
||||
set "TEMP_SCRIPT=%TEMP%\batch_script_%RANDOM%.bat"
|
||||
|
||||
echo Downloading script...
|
||||
|
||||
Reference in New Issue
Block a user