Re: Batch File Parameters

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Roger" <Roger@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:234748FF-173C-4C53-872A-05AAF5C54B64@xxxxxxxxxxxxxxxx
> What is the maximum number of parameters that can be passed to a batch
> command? I get a strange error message if I use more than about 20. If
that
> is the limit, can it be raised.
>
> Thanks
> ROGER

It would be helpful if you could quote the "strange error" you
observe so that we don't have to guess what your problem
might be. Regardless of this, I ran the batch file below and
it worked perfectly well with 35 parameters.

@echo off
set count=1
:again
echo Parm%count%=%1
set /a count=%count%+1
shift
pause
if %count% LEQ 35 goto again


.



Relevant Pages

  • Re: Multi-zip files -- Windows server
    ... native DOS versions). ... TO BATCH OR NOT TO BATCH ... and using a batch file to try and solve the problem... ... The IBM PC operating system command line is a most ...
    (comp.sys.cbm)
  • Re: Booming or Fuming? Are You Alive? Or Are You Fading Away?!
    ... purely of statements processed completely by the native batch command ... > command processor, only because it comes free with the OS. ... Hey, guard, it is not PERFECT, OK? ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Booming or Fuming? Are You Alive? Or Are You Fading Away?!
    ... purely of statements processed completely by the native batch command ... > command processor, only because it comes free with the OS. ... Hey, guard, it is not PERFECT, OK? ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Batch file (CMD) output into HTA
    ... One could argue that "real dos" and the NT command prompt have ... be a group for console operations, ... crosspost to batch, vbscript, wsh, powershell, and possibly other groups. ... are also using VBS and just don't know where else ...
    (microsoft.public.scripting.vbscript)
  • CreateProcess not working as doc specifies.
    ... I am having some difficulty using CreateProcess() to run a batch file and get ... you must start the command interpreter; ... the test.bat (should return exit code 1 and does when run from the command ...
    (microsoft.public.win32.programmer.kernel)