![run vbs file from cmd peru run vbs file from cmd peru](http://i.stack.imgur.com/D9UOR.png)
- #Run vbs file from cmd peru .exe#
- #Run vbs file from cmd peru install#
- #Run vbs file from cmd peru manual#
I am still in the sending part, I don't attack the receiving yet #echo "Your amount is $AMOUNT" >$FILENAME #run this script only when a message was received.
#Run vbs file from cmd peru manual#
# Please read the description in the manual of SMS Server Tools. If there are more than 1 sms in incoming folder, how will this script know which one is the new sms? I already made 2 different vb scripts for eventhandler and for regular run, and both run.īut, I want to know, this $1(flag for received) where does the script read it from? I get a little bit confused about how smstools works. Ok keke thanks and sorry I didn't paste the python code I used, actually is the one from this forum With a quick view some useful samples were found.
![run vbs file from cmd peru run vbs file from cmd peru](https://winaero.com/blog/wp-content/uploads/2016/01/Winaero-Tweaker-runas-context-menu.png)
If you need some samples for VB & MS SQL, put this to Google search: visual basic console application sql server. As you already had VB application, your "homework" is almost done. It could make sense if parameters to SQL Server are passed as arguments too (username, database, etc). At least $1 is required (type of SMS) and $2 (filename). Call this application from the eventhandler script, with arguments which are required. For MS SQL you need to create Visual Basic Console Application which does the job on that side. The script is running under Cygwin, and it can do certain operations like scripts usually do. You need to create an eventhandler script, which is called by smstools. I have not seen your Python code, so I cannot say anything about it.
#Run vbs file from cmd peru .exe#
exe app created) So how could I "translate" the python code to vb, what considerations should I have? I wanted to use python because I already tested extracting info from sms with it, but I guess it's not possible under cygwin.īut when eventhandler(new sms is received), what does smstools do? Because in the example in python the code never opens the file(sms received) it just check If $1 = Received, and now it's a different language, running outside cygwin(I mean the. I do have examples about those, because most systems runs under Linux" so please can you post those examples please? Keke you mentioned "You can use MS SQL with eventhandler, if you have suitable command line interface available. When I give C:\directorytest\myapp.vbs I see in smsd.log the message "C:\directorytest\myapp.vbs is not executable for smsdĭefinitely I guess I'm being really a big noob but can't succeed into it. Then I tried visual studio, actually I used a code for VB 2005 and it worked on windows side, but when I put it like an eventhandler for smstools under cygwin, if I give a path like /home/myapp.vbs then in smsd.log I see that it tries to execute each line of code and obviously it get errors because it's not a prog language known for cygwin.
#Run vbs file from cmd peru install#
I tried to install pyodbc and pymssql without success and I couldnt succed in cygwin for connecting sql server Well I tried to do by "linux" side I mean I installed freetds, unixODBC, python.