4

I have a little java programme, that responsible for sending message via mobile phone, and which is a native programme on the PC. But we won't convert it to .net, but it can be execute via dos cmd like:

java jar my_send_message.jar -p 12345678 -m This is a testing message. 

How can the .net programme get used with this little programme? Thanks.

DNB5brims
  • 25,200
  • 45
  • 121
  • 180

1 Answers1

2

You could process invoke it, using Process, as detailed here: How To: Execute command line in C#, get STD OUT results

Community
  • 1
  • 1
ziesemer
  • 26,239
  • 8
  • 80
  • 90