
unable to execute - arguments list is too long...
hi Morfer,
You may be running into a limitation of how long the command line can be.
I'm not sure about what the actual limitation is, but generally I would be
suspicious of anything longer than 260 characters.
For somebody PROGRAMMING the call to their script, the usual advice is to
"compress" the file names by using the "shortpath" property, which produces
those cryptic things you sometimes see in dos, i.e., blahbl~1/foobar~2/...
But for somebody who is launching by draging and dropping, that won't work,
so you may have to develop another strategy.
Or maybe somebody else will come along with a better idea.
cheers, jw
Quote:
> If I drop more then 5 files I get This error??
> How can I prefend this?
> This is the script..
> Am I doing something wrong here?
> set oArgs=wscript.arguments
> set oWsh=CreateObject("Wscript.Shell")
> if oArgs.Count=0 then
> oWsh.popup "No Arguments passed!",1,"",16
> else
> for i=1 to oArgs.Count
> next
> end if
> regards
> Morfer-