2-way services testing enquiry2 | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through April 05, 2007 ⬆ |
◄ ► |
Author | Message | |||||
Waleed Hameed New member Username: Waleed_k Post Number: 8 Registered: 02-2007 |
Hi again, I am still trying on it!!!! well let me put it in other way..... I am using with Sony Ericsson W900i as modem and I am trying to log the txt sms into a file useing the command line. I have configured the 2-way service as: SMS command perfix: "*" Command to execute: c:\windows\system32\cscript.exe c:\namedarg.vbs "/sender:@@SENDER@@" "/prefix:@@SMSPREFIX@@" "/message:@@FULLSMS@@" "/recipient:@@RECIP@@" THE CODE IS: -------------- Set argsNamed = WScript.Arguments.Named LogTxt = "BEGIN:" & vbcrlf LogTxt = LogTxt & "Sender=" & argsNamed.Item("sender") & vbcrlf LogTxt = LogTxt & "prefix=" & argsNamed.Item("prefix") & vbcrlf LogTxt = LogTxt & "message=" & argsNamed.Item("message") & vbcrlf LogTxt = LogTxt & "recipient=" & argsNamed.Item("recipient") & vbcrlf LogTxt = LogTxt & "END" & vbcrlf writelog(LogTxt) Set argsNamed = nothing function writelog(logstr) Dim fsl,flog Set fsl=CreateObject("Scripting.FileSystemObject") if Not (fsl.FileExists("C:\NAMEDTEST.log"))=true Then Set flog=fsl.CreateTextFile("C:\NAMEDTEST.log",true) flog.WriteLine(now() & " " & logstr) flog.Close Else Dim fll Set fll=fsl.OpenTextFile("C:\NAMEDTEST.log",8,true) fll.WriteLine(now() & " " & logstr) fll.Close Set fll=Nothing End if Set flog=nothing Set fsl=nothing End function ------------------------ the code located on the same PC with the NowSMS. I send SMS to the gateway using the mobile number of the SIM card into the modem. and the code is not working as no file been created. The SMS is loged within the SMS-IN folder and SMSyyyymmdd.log file. which means the code is not trigared as well. please, looking foreward for ur support. Regards. Waleed Hamed
| |||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6969 Registered: 10-2002 |
Hi Waleed, In your 2-way command definition ... change "*" to * -bn |