I need to execute a batch file from my
java code and am having trouble getting it to work on Windows CE.
Runtime.getRuntime().exec(mycmd) always throws the exception: java.IOExeception: CreateProcess: mycmd error=2
Testing I found that:
Runtime.getRuntime().exec("/Hard Disk/redit.exe") works, but
Runtime.getRuntime().exec("/Hard Disk/foobar.bat") fails as above.
foobar.bat exists and executes just fine from the command line (it's just a single echo statement).
Anyone know how I can get java/WinCE to cooperate?
* machine: LC7000 (X86 architecture)
* OS: WinCE 5.0
* jvm: CrE-ME V4.12 (Evaluation version)
Thanks!