How to pass arguments to java class files run through batch script
I am running this batch script. There are 4 arguments but I can only pass 2. Lets say the name of the script is upload.cmd it would take only 2 arguments like this upload.cmd pat1 path2 And after running it will ask for two more inputs which are actually some passwords. I have tried to pass all for arguments like this but it doesn't work. upload.cmd pat1 path2 pass1 pass2 so I opened batch script to figure out whats happening inside so that I could do something about it and the code is this. #echo off rem front end for the upload ConfigurationTool rem <Copyright></Copyright> rem Get remaining unshifted command line arguments and save them in the set CMD_LINE_ARGS= :setArgs if ""%2""=="""" goto doneSetArgs set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1 %2 shift goto setArgs :doneSetArgs runjava.cmd com.sas.oprisk.server.cli.ConfigurationTool -a upload %CMD_LINE_ARGS% So basically there is a java class being invoked runjava.cmd com.sas.oprisk.server.cli.ConfigurationTool -a upload %CMD_LINE_ARGS% and after it is invoked it asks for two more arguments like this: Is there a way to pass these arguments or code this script to somehow provide these passwords when the java class prompts for it?
How to resolve “undefined reference” when linking to libjpeg on Windows?
How can I set a proxy server for gem?
Batch File Loops with delims
Adding dependency to NSIS installer
How to browse for file (Win7/64bits)
Creating a HBITMAP from an existing buffer
Batch file to move bottom folder into specified location
Accessing command-line arguments in ASM (Win 7)
Filename too long in git for windows
Can't compile a simple hello world using GHC 7.8rc2 and Windows 7 (or install packages with cabal)
How can I set up an alert to send an email when someone does a vip swap in azure
Why does PowerShell display “DarkYellow” text improperly?
How do I modify keys in a KeyboardProc hooking procedure?
Is there a way to make an existing cmd window execute commands?
Access x64 TEB C++ & Assembly
How to get path of current active application window?