Run batch file from Java code

后端 未结 5 1332
南旧
南旧 2020-11-30 06:56

I am trying to run a batch file that is in another directory from my Java executable. I have the following code :

    try {
        Process p =  Runtime.getR         


        
5条回答
  •  难免孤独
    2020-11-30 07:49

    Your code is fine, but the problem is inside the batch file.

    You have to show the content of the bat file, your problem is in the paths inside the bat file.

提交回复
热议问题