posted 20 years ago
Let me ask this Q with an example:
I run my Class A from d:\product\scripts. In A I want to do a Runtime.getRuntime().exec("a.bat"); a.bat is in d:\product. So is there a way I can specify the dir. location of the Process that I get by doing a Runtime.getRuntime() - in this case as d:\product - meaning run a.bat @ d:\product.
Interestingly, I expected that there'll be an overloaded exec(), which let's me specify the dir. location.