Java code to execute a .sh file

后端 未结 5 980
暖寄归人
暖寄归人 2020-12-22 05:34

I have a .sh file stored in some Linux system. The full path of the file is:

/comviva/CPP/Kokila/TransactionHandler/scripts/stopTH.sh
         


        
5条回答
  •  旧时难觅i
    2020-12-22 05:42

    you may make a .bat file(batch file), that can run on windows. put the content of the .sh file in the .bat file start a process from your application like :

    Process.Start("myFile.bat");
    

提交回复
热议问题