6
1
I want to create a batch script that will run axis wsdl2java.bat for multiple WSDLs. When I create a batch script with just this code:
wsdl2java.bat
wsdl2java.bat
it would run wsdl2java.bat only once. I guess there is something with wsdl2java.bat batch script itself.
Can someone help me figure out what is the root cause of the problem?
thx for the answer, as well as for explanation. Works for me. As soon as I get some rep, I will vote it up also (: – dugokontov – 2011-08-02T12:03:55.040
Thanks for the correct answer. I also bow before your SUPERIOR knowledge, yet feel strangely offended by your tone. But hey, whatever floats your boat. – brandstaetter – 2011-08-02T13:00:42.173
The /C is still a valid method, just not preferred anymore. Deprecated, but still functional... – Brian Knoblauch – 2011-08-02T13:05:54.993
No, M. Knoblauch. Using a subsidiary command interpreter will prevent any environment changes made in the script from taking effect in the originally invoking command interpreter, which is the usual effect when the script is invoked directly. Both
START
andCMD /C
differ in operation fromCALL
in ways that mean that they aren't what's wanted in such circumstances as these. – JdeBP – 2011-08-02T15:13:09.267@JdeBP: Was
call
part of MSDOS? Or was that part of DRDOS? – Nils – 2011-08-02T19:42:01.137You're probably thinking of
– JdeBP – 2011-08-03T13:01:26.950INSTALL
inCONFIG.SYS
, which was a PC-DOS version 4 innovation.CALL
is a built-in command in the command interpreter, and not an operating system thing at all. It's been inCOMMAND
since the version ofCOMMAND
that came with MS-DOS 3.3. It's in Microsoft'sCMD
becauseCMD
continues the bizarre semantic ofCOMMAND
with respect to nested scripts.@Nils: Both. The CALL command was available in MS-DOS v3.1 ( http://support.microsoft.com/kb/34768 ), and as I recall DR-DOS introduced it first (I don't remember which version though). Before the CALL command was available, we had to use "Command.com /C name_of_target_batch_file.bat" for which the main disadvantages were that this consumed valuable RAM, loading TSRs would lead to instability after processing of the target batch file had completed, any altered environment variables would be lost, etc. The CALL command resolved all these problems well.
– Randolf Richardson – 2011-08-08T07:30:19.300