I'm writing an application for win32 which has to execute a batchfile (deploy.bat).
This batch file copy my application process result as content file in a specific path and send a mail notification with Blat (win32 command line utility, www.blat.net).
My application doesn't work fine (OS:Windows Server 2003, jvm: 1.6) if I use Runtime.getRuntime().exec() setting working directory. My tests in the following java code:
This si not my problem.
I need to execute this code: Runtime.getRuntime().exec(args, envp, dir) (method with three params) and I can't understand why same batch file (same args) works fine if I execute Runtime.getRuntime().exec(args) with one param.
In my batch file there is a call to a freeware utility command to send mail (blat), that create a socket to mail server