SMSCMD Code Sample download smscmd.zip Window console smscmd syntax smscmd "text" "phone1,phone2,phone3" "email" "password"
|
VB
Code Sample
|
JAVA Code Sample |
Java Cod Sample1 - Just execute the smscmd.exe . No Catch the response
import java.io.IOException; import java.io.InputStream;
public class ExecuteDOSCommand { public static void main(String[] args) { final String dosCommand = "cmd /c c:\\smscmd\\smscmd.exe"; final String text = "YOUR SMS Message Here .........................."; final String mobile = "YOUR mobile # here . It is international format with country code......................."; final String email = "YOUR email Here .........................."; final String password = "YOUR password Here .........................."; try { final Process process = Runtime.getRuntime().exec( dosCommand + " " + text + " " + mobile + " " + email + " " + password); } catch (IOException e) { e.printStackTrace(); } } } ¡@ Java Cod Sample 2 - Catch the smscmd.exe response back
import java.io.IOException; import java.io.InputStream;
public class ExecuteDOSCommand { public static void main(String[] args) { final String dosCommand = "cmd /c c:\\smscmd\\smscmd.exe"; final String text = "YOUR SMS Message Here .........................."; final String mobile = "YOUR mobile # here . It is international format with country code......................."; final String email = "YOUR email Here .........................."; final String password = "YOUR password Here .........................."; try { final Process process = Runtime.getRuntime().exec( dosCommand + " " + text + " " + mobile + " " + email + " " + password); final InputStream in = process.getInputStream(); int ch; while((ch = in.read()) != -1) { System.out.print((char)ch); } } catch (IOException e) { e.printStackTrace(); } } } |
¡@ VC++ sample |
#include "shellapi.h" (OR #include <windows.h> OR #include <afxwin.h> (if use MFC)) Link... shell32.lib VC ++ Code Sample ShellExecute(NULL,"open","c:\\smscmd\\smscmd.exe", "text mobile email password",NULL,SW_HIDE ); } ¡@ |
C# sample |
Process.Start(
"C:\\Windows\\system32\\cmd.exe", "/C C:\\smscmd\smscmd.exe
text mobile email password" ); } ¡@ |