@echo off

set NaturalDocsParams=

rem Shift and loop so we can get more than nine parameters.
rem This is especially important if we have spaces in file names.

:MORE
if "%1"=="" goto NOMORE
set NaturalDocsParams=%NaturalDocsParams% %1
shift
goto MORE
:NOMORE

perl NaturalDocs %NaturalDocsParams%

set NaturalDocsParams=
@perl %~dp0NaturalDocs %*
Make the Wndows batch callable from any directory
Make the Wndows batch callable from any directory

The perl script NaturalDocs shuld be referred to with the same path
as the calling batch, otherwise the script would have to be in the
search path. The %~dp0 environment variable points to the directory
which the script is being executed in.

All batch arguments can bepassed to a nested batch by %*.
