The MyGSM understands various command line keys.
Please note that, if MyGSM already runned, you can run MyGSM executable again
(with command line keys) for control the runned copy of application. Also, the
keys for MyGSM and MyGSM Pro are differ.
Common template of usage is next:
for MyGSM:
mygsm.exe [(-|/)keys] [Arg1] [Arg2]
for MyGSM Pro:
mygsmpro.exe [(-|/)keys] [Arg1] [Arg2]
Keys should begin with "-" or "/". They can separate by space but it is not necessary.
Some keys need various numbers of additional arguments. All keys are is case insensitive
Key
Description
MyGSM
MyGSM Pro
Nokia
-h, -? or -help
Show dialog box with short description of command line options.
Yes
Yes
-q
Shutdown current runned copy of MyGSM.
Yes
Yes
-sm
Send SMS. The next additional arguments are necessary:
arg1 - Phone Number
arg2 - Text of SMS in quotes
Yes
Yes
-sf
Send SMS from text file. The next additional arguments are necessary:
arg1 - Phone Number
arg2 - Full path to file with text of SMS
Yes
Yes
-w
Wait while connection with device will be available before execute command.
Yes
Yes
-COMx
Select serial port for execute command. Replace "x" by serial (COM) port number 1..999.
No
Yes
-iXXX
Select mobile device by IMEI for execute command. Replace "XXX" by IMEI number.
No
Yes
See the next samples of usage:
mygsm.exe -sm +1234567 "Yankee go home!"
- It sends SMS if connection is available .
mygsm.exe -w -sm +7654321 "You will love our democracy or die!"
- It waits while a connection will be available and sends SMS.
mygsmpro.exe -w -COM14 -sm +1234567 "Hello, world, and bye!"
- It waits while a connection on COM14 will be available and sends SMS.