Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to pass arguments to a vb exe using Java program

 
Umesh Kilkile
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've one exe which is written in VB. I've to invoke that exe and pass a path as a argument using java program.

Thank You,

Umesh
 
Martin Vanyavchich
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reading this might help.
 
Abhijeet Ravankar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here I try to invoke notepad.exe and pass the path of the file to open. Try it with your VB program. I think it should work.
You can later kill the VB program too.

 
Campbell Ritchie
Sheriff
Pie
Posts: 48981
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
p.destroy()???

You are better reading the Daconta paper which Martin Vanyavchich quoted. The ProcessBuilder class introduced in Java5 makes it a bit easier by combining Streams, but the principles are unchanged from Daconta.
 
Abhijeet Ravankar
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Campbell Ritchie: Thanks. But can we destroy a process using ProcessBuilder class (without using Process class)? Please share a better way to it.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12127
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Diwas Pathak,
Your post was moved to a new topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic