1.

Solve : Passing Parameters to scripts?

Answer»

Hello Guyz. I have a file EchoSample.cmd which I want to run from Command Prompt and give it 2 parameters http://localhost:8080/ and Hello. If I type EchoSample at MS command prompt it runs the file and asks for the arguments. But if I type EchoSample http://localhost:8080/ Hello it DOESNT recogines it as a command. HELP PLZThis depends whether it's your cmd file is requesting the parameters or the program the cmd file runs. One possibility is your use of special characters in the parameters.

You could try this :

EchoSample "http://localhost:8080/" "Hello"

HOPE this helps. Hi its the command file that asks for the arguments. I think its the seperator thats the problem. If I give it one argument it works FINE and asks for the second argument but if I give it both it doesnt recognize the commandTry GIVING the full name.

EchoSample.cmd and then the parameters in quotes.



Discussion

No Comment Found