run .exe without process class

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsn
    New Member
    • Sep 2007
    • 237

    run .exe without process class

    hello
    i have searching online for some way to run a .exe (.bat) file which is in the same directory as the java file, so no need for a path only the name of the file
    but, i am having trouble running the file, i don't want to use
    Code:
     Process p = Runtime.getRuntime().exec
    is there any way else to runn the .bat file

    regards
    hsn
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    What problems are you having with it? Because that is the way to run external programs and also bat files.

    Greetings,
    Nepomuk

    Comment

    • hsn
      New Member
      • Sep 2007
      • 237

      #3
      well, i know that is the way
      but i was asking if someone new another way. thats it

      Comment

      Working...