i had a small problem regarding passing parameter from JSP to a batch file. My program is like this..... I wrote a batch file which opens and pings a remote system. Code looks like this..... ping %1 -t which takes one argument and named this as "a.bat" The corresponding JSP page has lot of links which contains IP Addressess.
Apr 24, 2019 · You can’t pass arguments to a file. You can pass arguments to a program. I know it sounds like I’m being pedantic, but understanding the distinction helps in understanding what’s happening. Dec 04, 2017 · Make a new batch file (example: openclass.bat) and write this line in the file: java %~n1 Then place the batch file in, let’s say, the system32 folder, go to your Java class file, right click, Properties, Open with…, then find your batch file, select it and that’s that… It works for me.