IT Management Daily
Storage Daily
Security Daily
FREE NEWSLETTERS
search
 

follow us on Twitter


internet.commerce
Be a Commerce Partner















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




Products
 DBX to CSV Extractor (DevSlide, Inc.)
 Skype Records (ABTO LLC)
 Orion Network Performance Monitor (SolarWinds)
 FB Limiter (AxiomCoders)
 Keylogger Free Download (Free keylogger download)
 Doremisoft Mac PDF to HTML Converter (Doremisoft Studio)
» Enterprise IT Planet » Resources » SMS Scripts

SMS Message Send Script

September 26, 2003

Email Print Digg This Add to del.icio.us
Here's a script from James Igoe that presents a graphical interface for sending one message to up to 6 IDs. The script also keeps a record of the last twenty commands. The script does require some additional files -- download the ZIP package below to get all the files required by the script (updated 1/18/02 with a ZIP of the additional files).

Download the Netsend.zip package.

<< Back to SMS Scripts list.


Below is the entire script:


Document Type: IPF
item: Global
  Version=5.0
  Title=Net Send Utility
  Flags=00000100
  Languages=65 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
  Japanese Font Name=MS Gothic
  Japanese Font Size=10
  Start Gradient=0 0 255
  End Gradient=0 0 0
  Windows Flags=00000000000000000010110001010010
  Message Font=MS Sans Serif
  Font Size=8
  Disk Filename=SETUP
  Patch Flags=0000000000000001
  Patch Threshold=85
  Patch Memory=4000
  FTP Cluster Size=20
end
item: Check Disk Space
end
item: Get Environment Variable
  Variable=TEMPDIR
  Environment=TEMP
end
item: Remark
end
item: Get Environment Variable
  Variable=WINDIR
  Environment=WINDIR
end
item: Remark
end
item: Set Variable
  Variable=PROGDIR
  Value=C:\PROGRAM FILES\NETSEND
end
item: Remark
end
item: Install File
  Source=\\NYP_N061\VOL7\INSTALLS\SMSINST\USIM\NETSEND\NETSEND.CMD
  Destination=%PROGDIR%\netsend.cmd
  Flags=0000000000100010
end
item: Install File
  Source=\\NYP_N061\VOL7\INSTALLS\SMSINST\USIM\NETSEND\NETSEND.INI
  Destination=%PROGDIR%\netsend.ini
  Flags=0000000000101010
end
item: Install File
  Source=\\NYP_N061\VOL7\INSTALLS\SMSINST\USIM\NETSEND\RESPONSE.TXT
  Destination=%PROGDIR%\response.TXT
  Flags=0000000000101010
end
item: Install File
  Source=\\NYP_N061\VOL7\INSTALLS\SMSINST\USIM\NETSEND\response.CMD
  Destination=%PROGDIR%\response.cmd
  Flags=0000000000101010
end
item: Remark
end
item: Set Variable
  Variable=CMDFILE
  Value=%PROGDIR%\NETSEND.CMD
end
item: Set Variable
  Variable=RESPONSE
  Value=%PROGDIR%\RESPONSE.TXT
end
item: Set Variable
  Variable=SENTTO
  Value=%PROGDIR%\NETSEND.INI
end
item: Set Variable
  Variable=SENTTOBAK
  Value=%PROGDIR%\NETSEND.BAK
end
item: Set Variable
  Variable=HELPFILE
  Value=%PROGDIR%\BROADCAST.TXT
end
item: Set Variable
  Variable=RESPONSE2
  Value=%PROGDIR%\RESPONSE.CMD
end
item: Remark
end
item: Set Variable
  Variable=RECIPIENT
end
item: Set Variable
  Variable=MESSAGE
end
item: Set Variable
  Variable=CMDWINDOW
end
item: Set Variable
  Variable=TEMP
end
item: Set Variable
  Variable=CLEAR
end
item: Set Variable
  Variable=RUN
  Value=1
end
item: Remark
end
item: Get Environment Variable
  Variable=USERNAME
  Environment=USERNAME
end
item: Get Environment Variable
  Variable=FULLNAME
  Environment=FULLNAME
end
item: If/While Statement
  Variable=FULLNAME
  Flags=00000100
end
item: Set Variable
  Variable=FULLNAME
  Value=%USERNAME%
end
item: End Block
end
item: Remark
end
item: If/While Statement
  Variable=RUN
  Value=1
  Flags=00010000
end
item: Set Variable
  Variable=SEND
end
item: Set Variable
  Variable=HELP
  Value=0
end
item: Set Variable
  Variable=UPDATEINI
  Value=0
end
item: Set Variable
  Variable=COMMAND
  Value=NET SEND
end
item: Read INI Value
  Variable=RECIPIENT
  Pathname=%SENTTO%
  Section=SENTTO
  Item=RECIPIENT
end
item: Read INI Value
  Variable=SENTTO1
  Pathname=%SENTTO%
  Section=SENTTO
  Item=SENTTO1
end
item: Read INI Value
  Variable=SENTTO2
  Pathname=%SENTTO%
  Section=SENTTO
  Item=SENTTO2
end
item: Read INI Value
  Variable=SENTTO3
  Pathname=%SENTTO%
  Section=SENTTO
  Item=SENTTO3
end
item: Read INI Value
  Variable=SENTTO4
  Pathname=%SENTTO%
  Section=SENTTO
  Item=SENTTO4
end
item: Read INI Value
  Variable=SENTTO5
  Pathname=%SENTTO%
  Section=SENTTO
  Item=SENTTO5
end
item: Read INI Value
  Variable=COUNTER
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COUNTER
end
item: Read INI Value
  Variable=COMMAND1
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND1
end
item: Read INI Value
  Variable=COMMAND2
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND2
end
item: Read INI Value
  Variable=COMMAND3
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND3
end
item: Read INI Value
  Variable=COMMAND4
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND4
end
item: Read INI Value
  Variable=COMMAND5
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND5
end
item: Read INI Value
  Variable=COMMAND6
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND6
end
item: Read INI Value
  Variable=COMMAND7
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND7
end
item: Read INI Value
  Variable=COMMAND8
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND8
end
item: Read INI Value
  Variable=COMMAND9
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND9
end
item: Read INI Value
  Variable=COMMAND10
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND10
end
item: Read INI Value
  Variable=COMMAND12
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND12
end
item: Read INI Value
  Variable=COMMAND13
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND13
end
item: Read INI Value
  Variable=COMMAND14
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND14
end
item: Read INI Value
  Variable=COMMAND15
  Pathname=%SENTTO%
  Section=PreviousCommands
  Item=COMMAND15
end
item: Custom Dialog Set
  Name=NT Broadcast Utility
  item: Dialog
    Title=NT Broadcast Utility
    Width=388
    Height=160
    Font Name=Helv
    Font Size=8
    item: Combobox
      Rectangle=4 18 377 86
      Variable=MESSAGE
      Create Flags=01010000001000010000001000000010
      Text=%COMMAND15%
      Text=%COMMAND14%
      Text=%COMMAND13%
      Text=%COMMAND12%
      Text=%COMMAND11%
      Text=%COMMAND10%
      Text=%COMMAND9%
      Text=%COMMAND8%
      Text=%COMMAND7%
      Text=%COMMAND6%
      Text=%COMMAND5%
      Text=%COMMAND4%
      Text=%COMMAND3%
      Text=%COMMAND2%
      Text=%COMMAND1%
      Text=[End of List]
      Text=
    end
    item: Editbox
      Rectangle=25 71 65 86
      Variable=RECIPIENT
      Help Context=655360
      Create Flags=01010000100000010000000000000000
      Text=%RECIPIENT%
    end
    item: Editbox
      Rectangle=25 91 65 106
      Variable=SENTTO1
      Help Context=655360
      Create Flags=01010000100000010000000000000000
      Text=%SENTTO1%
    end
    item: Editbox
      Rectangle=25 111 65 126
      Variable=SENTTO2
      Help Context=655360
      Create Flags=01010000100000010000000000000000
      Text=%SENTTO2%
    end
    item: Editbox
      Rectangle=100 71 140 86
      Variable=SENTTO3
      Help Context=655360
      Create Flags=01010000100000010000000000000000
      Text=%SENTTO3%
    end
    item: Editbox
      Rectangle=100 91 140 106
      Variable=SENTTO4
      Help Context=655360
      Create Flags=01010000100000010000000000000000
      Text=%SENTTO4%
    end
    item: Editbox
      Rectangle=100 111 140 126
      Variable=SENTTO5
      Help Context=655360
      Create Flags=01010000100000010000000000000000
      Text=%SENTTO5%
    end
    item: Push Button
      Rectangle=169 42 259 62
      Variable=SEND
      Value=1
      Action=1
      Create Flags=01010000000000010000000000000001
      Text=Send Message and Close
    end
    item: Push Button
      Rectangle=169 67 259 87
      Variable=SEND
      Value=2
      Action=1
      Create Flags=01010000000000010000000000000000
      Text=Send Message
    end
    item: Push Button
      Rectangle=169 92 259 112
      Variable=UPDATEINI
      Value=1
      Action=1
      Create Flags=01010000000000010000000000000000
      Text=Update UserID List
    end
    item: Push Button
      Rectangle=279 42 369 62
      Variable=UPDATEINI
      Value=2
      Action=1
      Create Flags=01010000000000010000000000000000
      Text=Clear Message List
    end
    item: Push Button
      Rectangle=279 67 369 87
      Variable=HELP
      Value=1
      Action=1
      Create Flags=01010000000000010000000000000000
      Text=View ReadMe
    end
    item: Push Button
      Rectangle=279 92 369 112
      Variable=SEND
      Value=0
      Action=1
      Create Flags=01010000000000010000000000000000
      Text=Close
    end
    item: Checkbox
      Rectangle=10 66 20 126
      Variable=SENTTOBOX
      Create Flags=01010000000000010000000000000011
      Text= 
      Text= 
      Text= 
      Text=
    end
    item: Checkbox
      Rectangle=85 66 95 126
      Variable=SENTTOBOX2
      Create Flags=01010000000000010000000000000011
      Text= 
      Text= 
      Text= 
      Text=
    end
    item: Static
      Rectangle=10 43 105 63
      Create Flags=01010000000000000000000000000000
      Text=Define and choose your recipients (use their NT UserID)
    end
    item: Static
      Rectangle=10 5 78 15
      Create Flags=01010000000000000000000000001100
      Text=Type your message here:
    end
    item: Static
      Rectangle=241 124 366 141
      Destination Dialog=2
      Create Flags=01010000000000000000000000000001
      Flags=0000000000000001
      Name=Arial
      Font Style=-19 0 0 0 700 0 0 0 0 3 2 1 34
      Text=NT Broadcast Utility 1.2
    end
  end
end
item: If/While Statement
  Variable=SEND
  Value=0
end
item: Exit Installation
end
item: End Block
end
item: If/While Statement
  Variable=HELP
  Value=1
end
item: Execute Program
  Pathname=%HELPFILE%
end
item: End Block
end
item: If/While Statement
  Variable=UPDATEINI
  Value=1
end
item: Edit INI File
  Pathname=%SENTTO%
  Settings=[SENTTO]
  Settings=RECIPIENT=%RECIPIENT%
  Settings=SENTTO1=%SENTTO1%
  Settings=SENTTO2=%SENTTO2%
  Settings=SENTTO3=%SENTTO3%
  Settings=SENTTO4=%SENTTO4%
  Settings=SENTTO5=%SENTTO5%
  Settings=
  Settings=
end
item: End Block
end
item: If/While Statement
  Variable=UPDATEINI
  Value=2
end
item: Edit INI File
  Pathname=%SENTTO%
  Settings=[PreviousCommands]
  Settings=COUNTER=0
  Settings=COMMAND1=
  Settings=COMMAND2=
  Settings=COMMAND3=
  Settings=COMMAND4=
  Settings=COMMAND5=
  Settings=COMMAND6=
  Settings=COMMAND7=
  Settings=COMMAND8=
  Settings=COMMAND9=
  Settings=COMMAND10=
  Settings=COMMAND11=
  Settings=COMMAND12=
  Settings=COMMAND13=
  Settings=COMMAND14=
  Settings=COMMAND15=
  Settings=COMMAND15=
  Settings=COMMAND16=
  Settings=COMMAND17=
  Settings=COMMAND18=
  Settings=
end
item: End Block
end
item: If/While Statement
  Variable=COUNTER
  Value=15
  Flags=00000111
end
item: Set Variable
  Variable=COUNTER
  Value=0
end
item: End Block
end
item: If/While Statement
  Variable=UPDATEINI
  Value=0
end
item: If/While Statement
  Variable=SEND
  Value=0
  Flags=00000001
end
item: Edit INI File
  Pathname=%SENTTO%
  Settings=[SENTTO]
  Settings=RECIPIENT=%RECIPIENT%
  Settings=SENTTO1=%SENTTO1%
  Settings=SENTTO2=%SENTTO2%
  Settings=SENTTO3=%SENTTO3%
  Settings=SENTTO4=%SENTTO4%
  Settings=SENTTO5=%SENTTO5%
  Settings=
  Settings=
end
item: Set Variable
  Variable=COUNTER
  Value=%COUNTER%
  Flags=00000100
end
item: Edit INI File
  Pathname=%SENTTO%
  Settings=[PreviousCommands]
  Settings=COUNTER=%COUNTER%
  Settings=COMMAND%COUNTER%=%MESSAGE%
  Settings=
end
item: If/While Statement
  Variable=SENTTOBOX
  Value=A
  Flags=00000010
end
item: Set Variable
  Variable=RECIPIENT
  Value=%RECIPIENT%
end
item: Set Variable
  Variable=COMMAND
  Value=NET SEND %RECIPIENT% From %FULLNAME%,  %MESSAGE%  >  "C:\PROGRAM FILES\NETSEND\RESPONSE.TXT"
end
item: Insert Line into Text File
  Pathname=%CMDFILE%
  New Text=%COMMAND%
  Search Text=NET SEND
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%CMDFILE%
  Flags=00000110
end
item: Read/Update Text File
  Variable=APPEND
  Pathname=%RESPONSE%
end
item: Insert Line into Text File
  Pathname=%RESPONSE2%
  New Text=NET SEND %USERNAME%  %APPEND%
  Search Text=NET
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%RESPONSE2%
  Flags=00000110
end
item: End Block
end
item: End Block
end
item: If/While Statement
  Variable=SENTTOBOX
  Value=B
  Flags=00000010
end
item: Set Variable
  Variable=RECIPIENT
  Value=%SENTTO1%
end
item: Set Variable
  Variable=COMMAND
  Value=NET SEND %RECIPIENT% From %FULLNAME%,  %MESSAGE%  >  "C:\PROGRAM FILES\NETSEND\RESPONSE.TXT"
end
item: Insert Line into Text File
  Pathname=%CMDFILE%
  New Text=%COMMAND%
  Search Text=NET SEND
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%CMDFILE%
  Flags=00000110
end
item: Read/Update Text File
  Variable=APPEND
  Pathname=%RESPONSE%
end
item: Insert Line into Text File
  Pathname=%RESPONSE2%
  New Text=NET SEND %USERNAME%  %APPEND%
  Search Text=NET
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%RESPONSE2%
  Flags=00000110
end
item: End Block
end
item: End Block
end
item: If/While Statement
  Variable=SENTTOBOX
  Value=C
  Flags=00000010
end
item: Set Variable
  Variable=RECIPIENT
  Value=%SENTTO2%
end
item: Set Variable
  Variable=COMMAND
  Value=NET SEND %RECIPIENT% From %FULLNAME%,  %MESSAGE%  >  "C:\PROGRAM FILES\NETSEND\RESPONSE.TXT"
end
item: Insert Line into Text File
  Pathname=%CMDFILE%
  New Text=%COMMAND%
  Search Text=NET SEND
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%CMDFILE%
  Flags=00000110
end
item: Read/Update Text File
  Variable=APPEND
  Pathname=%RESPONSE%
end
item: Insert Line into Text File
  Pathname=%RESPONSE2%
  New Text=NET SEND %USERNAME%  %APPEND%
  Search Text=NET
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%RESPONSE2%
  Flags=00000110
end
item: End Block
end
item: End Block
end
item: If/While Statement
  Variable=SENTTOBOX2
  Value=A
  Flags=00000010
end
item: Set Variable
  Variable=RECIPIENT
  Value=%SENTTO3%
end
item: Set Variable
  Variable=COMMAND
  Value=NET SEND %RECIPIENT% From %FULLNAME%,  %MESSAGE%  >  "C:\PROGRAM FILES\NETSEND\RESPONSE.TXT"
end
item: Insert Line into Text File
  Pathname=%CMDFILE%
  New Text=%COMMAND%
  Search Text=NET SEND
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%CMDFILE%
  Flags=00000110
end
item: Read/Update Text File
  Variable=APPEND
  Pathname=%RESPONSE%
end
item: Insert Line into Text File
  Pathname=%RESPONSE2%
  New Text=NET SEND %USERNAME%  %APPEND%
  Search Text=NET
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%RESPONSE2%
  Flags=00000110
end
item: End Block
end
item: End Block
end
item: If/While Statement
  Variable=SENTTOBOX2
  Value=B
  Flags=00000010
end
item: Set Variable
  Variable=RECIPIENT
  Value=%SENTTO4%
end
item: Set Variable
  Variable=COMMAND
  Value=NET SEND %RECIPIENT% From %FULLNAME%,  %MESSAGE%  >  "C:\PROGRAM FILES\NETSEND\RESPONSE.TXT"
end
item: Insert Line into Text File
  Pathname=%CMDFILE%
  New Text=%COMMAND%
  Search Text=NET SEND
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%CMDFILE%
  Flags=00000110
end
item: Read/Update Text File
  Variable=APPEND
  Pathname=%RESPONSE%
end
item: Insert Line into Text File
  Pathname=%RESPONSE2%
  New Text=NET SEND %USERNAME%  %APPEND%
  Search Text=NET
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%RESPONSE2%
  Flags=00000110
end
item: End Block
end
item: End Block
end
item: If/While Statement
  Variable=SENTTOBOX2
  Value=C
  Flags=00000010
end
item: Set Variable
  Variable=RECIPIENT
  Value=%SENTTO5%
end
item: Set Variable
  Variable=COMMAND
  Value=NET SEND %RECIPIENT% From %FULLNAME%,  %MESSAGE%  >  "C:\PROGRAM FILES\NETSEND\RESPONSE.TXT"
end
item: Insert Line into Text File
  Pathname=%CMDFILE%
  New Text=%COMMAND%
  Search Text=NET SEND
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%CMDFILE%
  Flags=00000110
end
item: Read/Update Text File
  Variable=APPEND
  Pathname=%RESPONSE%
end
item: Insert Line into Text File
  Pathname=%RESPONSE2%
  New Text=NET SEND %USERNAME%  %APPEND%
  Search Text=NET
  Line Number=1
  Flags=00001000
end
item: Execute Program
  Pathname=%RESPONSE2%
  Flags=00000110
end
item: End Block
end
item: End Block
end
item: If/While Statement
  Variable=SEND
  Value=1
end
item: Exit Installation
end
item: End Block
end
item: End Block
end
item: End Block
end
item: End Block
end

Disclaimer: We hope that the information in these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. We shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

Email Print Digg This Add to del.icio.us

SMS Scripts Archives




Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers