(view source code of max_php.bat as plain text)
:: https://www.robvanderwoude.com/batchphp.php
:: Returns the largest of the numbers specified
:: Usage: "Max 4 16 0 -99" returns "16"
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
IF NOT "%~2"=="" (
FOR %%A IN (%*) DO SET Args=!Args!, %%A
PHP -r "print(max(!Args:~2!));"
)
ENDLOCAL
page last modified: 2024-04-16; loaded in 0.0094 seconds