Batch script that creates and runs VBscript in same folder
@echo off
echo MyString=wscript.arguments(0)>splitter.vbs
echo MyArray = Split(MyString, "%%%%", -1, 1)>>splitter.vbs
echo last=UBound(MyArray)>>splitter.vbs
echo For j = 0 To last>>splitter.vbs
echo wscript.echo MyArray(j)>>splitter.vbs
echo Next>>splitter.vbs
REM Testing example string
REM note that a % sign is a control character in batch so needs to be escaped
REM by another % sign (i.e. doubled)
set Longstring=Cat%%%%Dog%%%%Horse%%%%Bird%%%%Fish%%%%Chicken
for /f "delims=" %%A in ( 'cscript //nologo splitter.vbs "%Longstring%" ' ) do echo %%A
REM at end of batch (if desired)
del splitter.vbs