Allow L_ARGS for Python scripts in Launch.cmd
This commit is contained in:
parent
91b5dbfe88
commit
71297eacc8
1 changed files with 5 additions and 5 deletions
|
|
@ -280,9 +280,9 @@ rem Create VB script
|
||||||
mkdir "%bin%\tmp" 2>nul
|
mkdir "%bin%\tmp" 2>nul
|
||||||
echo Set UAC = CreateObject^("Shell.Application"^) > "%bin%\tmp\Elevate.vbs"
|
echo Set UAC = CreateObject^("Shell.Application"^) > "%bin%\tmp\Elevate.vbs"
|
||||||
if defined L_NCMD (
|
if defined L_NCMD (
|
||||||
echo UAC.ShellExecute "%PYTHON%", """%script%""", "", "runas", 3 >> "%bin%\tmp\Elevate.vbs"
|
echo UAC.ShellExecute "%PYTHON%", """%script%"" %L_ARGS%", "", "runas", 3 >> "%bin%\tmp\Elevate.vbs"
|
||||||
) else (
|
) else (
|
||||||
echo UAC.ShellExecute "%CON%", "-run ""%PYTHON%"" ""%script%"" -new_console:n", "", "runas", 1 >> "%bin%\tmp\Elevate.vbs"
|
echo UAC.ShellExecute "%CON%", "-run ""%PYTHON%"" ""%script%"" %L_ARGS% -new_console:n", "", "runas", 1 >> "%bin%\tmp\Elevate.vbs"
|
||||||
)
|
)
|
||||||
|
|
||||||
rem Run
|
rem Run
|
||||||
|
|
@ -291,9 +291,9 @@ goto Exit
|
||||||
|
|
||||||
:LaunchPyScriptUser
|
:LaunchPyScriptUser
|
||||||
if defined L_NCMD (
|
if defined L_NCMD (
|
||||||
start "" "%PYTHON%" "%script%" || goto ErrorUnknown
|
start "" "%PYTHON%" "%script%" %L_ARGS% || goto ErrorUnknown
|
||||||
) else (
|
) else (
|
||||||
start "" "%CON%" -run "%PYTHON%" "%script%" -new_console:n || goto ErrorUnknown
|
start "" "%CON%" -run "%PYTHON%" "%script%" %L_ARGS% -new_console:n || goto ErrorUnknown
|
||||||
)
|
)
|
||||||
goto Exit
|
goto Exit
|
||||||
|
|
||||||
|
|
@ -333,7 +333,7 @@ echo. Executable Working Dir Program Args [L_7ZIP] [L_ELEV] [L__CLI]
|
||||||
echo. Folder Folder '.' [L_7ZIP]
|
echo. Folder Folder '.' [L_7ZIP]
|
||||||
echo. Office Year Product [L_7ZIP]
|
echo. Office Year Product [L_7ZIP]
|
||||||
echo. PSScript Scripts Script [L_7ZIP] [L_ELEV] [L_NCMD]
|
echo. PSScript Scripts Script [L_7ZIP] [L_ELEV] [L_NCMD]
|
||||||
echo. PyScript Scripts Script [L_7ZIP] [L_ELEV] [L_NCMD]
|
echo. PyScript Scripts Script Args [L_7ZIP] [L_ELEV] [L_NCMD]
|
||||||
echo. QuickBooks Year Product [L_7ZIP]
|
echo. QuickBooks Year Product [L_7ZIP]
|
||||||
echo.
|
echo.
|
||||||
echo.L_7ZIP: Extra arguments for 7-Zip (in the :ExtractCBin label)
|
echo.L_7ZIP: Extra arguments for 7-Zip (in the :ExtractCBin label)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue