1.

Solve : Command Line Args in Batch File?

Answer»

Is there a WAY to check if the USER has passed in a certian NUMBER of arguments.

You might have mentioned your OS but this works on my machine:

Code: [SELECT]
@echo off
set count=0
:start
if .%1==. goto next
set /a count=%count%+1
shift
goto start
:next
echo %count% arg(s) were passed


Works on NT based machines, otherwise BATCH language does not do arithmetic.

Hope this helps. Thanks, Ill give that a try,

OS = Win2K



Discussion

No Comment Found