Issue Multiple Commands on a Batch File

296 views Asked by At

I would want my batch file to execute 3 commands. This is my code:

CALL wsadmin.bat sadmin -conntype %conType% -host %hostName% -port %soapPort% 
wsadmin set jvmProcessDef [$AdminConfig getid /Cell:%cellName%/Node:%nodeName%/Server:%servName%/JavaProcessDef:/JavaVirtualMachine:/] 
wsadmin -lang jacl -f delete.jacl 

When I run this, only the first one gets executed and shows me that it is ignoring the lines after that. I haven't really tried to do any batch scripts before so I don't know if this is possible or is there a way to do this? I have done some readings and research, but it still doesn't work. Any ideas or tips would help.

EDIT:

I tried to chain it like this:

CALL wsadmin.bat sadmin -conntype %conType% -host %hostName% -port %soapPort% && wsadmin set jvmProcessDef [$AdminConfig getid /Cell:%cellName%/Node:%nodeName%/Server:%servName%/JavaProcessDef:/JavaVirtualMachine:/] && wsadmin -lang jacl -f delete.jacl 

And this is the error now:

WASX7209I: Connected to process "server1" on node PHMADGELROSSG1Node01 using SOAP connector;  The type of process is: UnmanagedProcess
WASX7411W: Ignoring the following provided option: [sadmin]
WASX7209I: For help enter, "$Help help"
wsadmin>

0

There are 0 answers