J'ai remarqué une chose c'est que lorsque j'encapsule la commande CMD /c batch.bat dans le Runtime, cela marche bien, par contre lorsque je mets la commande call batch.bat , ça ne marche pas, j'ai un java.io.IOException
Une partie du programme :

Process proc = Runtime.getRuntime().exec(Execution.Mailcmdrun);

Exception in thread "main" java.io.IOException: CreateProcess: call E:\Cptr_exploit\MailCPA_06781307.bat error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at Envoimailcpa.main(Envoimailcpa.java:353)