-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path[start][exec-all-script-pack-folders].bat
More file actions
36 lines (29 loc) · 1.05 KB
/
[start][exec-all-script-pack-folders].bat
File metadata and controls
36 lines (29 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
:: Disable command echo ::
@echo off
:: Changing execution path just in case; the implementation shouldn't depend on this ::
cd /d "%~dp0"
:: Variables ::
set scriptFolderPath="%~dp0"
set utilsPath=%scriptFolderPath%script-utils
set restartRequired=0
:: Iterate over every script found in defined folder ::
for /D %%f in (%scriptFolderPath%script-pack-*) do (
:: Change window title ::
title Script executor
:: Script execution ::
echo ======================================================================
echo Folder executor loop
echo ----------------------------------------------------------------------
echo Found folder: %%~nxf
call %utilsPath%\script-pack-executor "%%f"
echo ----------------------------------------------------------------------
:: OFF :: call %utilsPath%\restart-manager check
echo ======================================================================
call %utilsPath%\print-spacer 6
call %utilsPath%\print-filler 6
call %utilsPath%\print-spacer 6
)
)
:: Check restart flag ::
call %utilsPath%\restart-manager check
pause