Windows-Server-2003/tools/buildtimes.cmd

35 lines
521 B
Batchfile
Raw Normal View History

2024-08-04 01:28:15 +02:00
@echo off
setlocal ENABLEDELAYEDEXPANSION
set mergeroot=
set args=
set opts=
:NextArg
if "%1"=="" goto :ArgDone
set tmp=%1
set tmp0=!tmp:~0,1!
if "!tmp0!"=="-" set opts=!opts! %1 & goto ArgOK
if "!tmp0!"=="/" set opts=!opts! %1 & goto ArgOK
set args=!args! %1
:ArgOK
shift
goto :NextArg
:ArgDone
set filenames=
for %%x in (%args%) do (
set filenames=!filenames! %%x
)
if "%filenames%"=="%1" goto :Usage
cscript buildtimes.js %opts% %filenames% //nologo
goto :Eof
:Usage
cscript buildtimes.js -? //nologo