cobcd.bat 840 Bytes
Newer Older
1 2
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
3
::
4 5 6 7 8 9
::###########################################################################
::## The version number in the next line is updated by a Linux bash script. #
::## The text "Version x.x" has to appear in square brackets.               #
::## Don't mess with it!                                                    #
::###########################################################################
::
10
set VERSION=[Version 4.7]
11 12
::
::
13 14
:: Stupendously useful:
:: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/call
15

16
set COMMAND_LINE="python %~dp0cobcd
17

18
:parameter_loop
19 20
    IF not "%1"=="" (
        SET COMMAND_LINE=%COMMAND_LINE% %1
21 22 23 24
        )
    shift
    if not "%~1"=="" goto parameter_loop

25
set COMMAND_LINE=%COMMAND_LINE%"
26

27
cmd /q /c %COMMAND_LINE%
28