This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I have 2 batch files "run.bat" and "run1.bat". They reside in C:/bin/. Contents of these files are as follows: Observe that "run.bat" is calling "run1.bat".
Run.bat @echo Sanjay call run1
Run1.bat @echo Sanghavi
My java class reside in E;/bin and it looks like...
Result of this java code execution is that it prints "Sanjay" and then its not able to call "run1.bat"
This is because the directory where these batch files reside is different from the dir where my java class is. If I change "run.bat" as follows, it works fine and prints "Sanghavi".
Run.bat @echo Sanjay call c:/bin/run1
But I dont want to change the batch file instead is there a way I can achieve this with some code changes in java or some other way to do this?
Thanks in advance Sanjay
Ernest Friedman-Hill
author and iconoclast
Marshal