Redirecting passed arguments to a windows batch file [duplicate]

Does

java -jar foo.jar %*

meet your needs? It should add all parameters from the batch execution to your application call within the batch file.