Hello,
A few days ago my friend need a Visual Basic Script to verify if a process is running and if it is send an e-mail. He asked me for help to code it, and I helped him.
Visual Basic Script to verify if a process is running and notify via e-mail.
Verify if a process is running with Visual Basic Script and shows a window if it is.
[code lang=”vb”]
set service = GetObject (“winmgmts:”)
for each Process in Service.InstancesOf (“Win32_Process”)
If Process.Name = processName then
wscript.echo “Notepad running”
wscript.quit
End If
next
[/code]
Send an e-mail using Visual Basic Script
[code lang=”vb”]
Const username = “USERNAME”
Const password = “PASSWORD”
Const smtpServer = “smtp.gmail.com”
Const port = 465
Const secure = True
Const userFrom = “FROM”
Const userTo = “TO”
Const emailSubject = “Subject”
Const emailText = “Text”
‘== CODE ==
Const cdoSendUsingPickup = 1 ‘Send message using the local SMTP service pickup directory.
Const cdoSendUsingPort = 2 ‘Send the message using the network (SMTP over the network).
Const cdoAnonymous = 0 ‘Do not authenticate
Const cdoBasic = 1 ‘basic (clear-text) authentication
Const cdoNTLM = 2 ‘NTLM
Set objMessage = CreateObject(“CDO.Message”)
objMessage.Subject = emailSubject
objMessage.From = userFrom
objMessage.To = userTo
objMessage.TextBody = emailText
‘==This section provides the configuration information for the remote SMTP server.
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2
‘Name or IP of Remote SMTP Servesr
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpserver”) = smtpServer
‘Type of authentication, NONE, Basic (Base64 encoded), NTLM
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpauthenticate”) = cdoBasic
‘Your UserID on the SMTP server
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/sendusername”) = username
‘Your password on the SMTP server
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/sendpassword”) = password
‘Server port (typically 25)
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpserverport”) = port
‘Use SSL for the connection (False or True)
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpusessl”) = secure
‘Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
objMessage.Configuration.Fields.Item _
(“http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout”) = 60
objMessage.Configuration.Fields.Update
objMessage.Send
[/code]
This two scripts are changed to work together to do what we want and have a config section.
Best Regards,
Matheus
References:
http://wiki.imacros.net/send-email.vbs
http://www.techimo.com/forum/applications-operating-systems/117464-need-vbulletin-script-check-see-if-process-running.html
online casino bonus ohne Einzalung slotmaschinen
casino 100 euro einzahlung apple pay (https://www.bernierworld.com)
mit 5 cent einsatz
casino für kleines budget
Here is my web-site online spins erfahrungen
https://www.play56.net/home.php?mod=space&uid=5992254
roulette auszahlung orphelins
Feel free to surf to my web page – casino apple pay ab 2 euro
online neue casinos mit live casino (Alexis)
aktionscode
Online casino mit paysafe card ohne lugas cashtocode
online casino mit früchte spielautomaten casino 15 euro trustly
scratch cards app um echtes geld
My web-site; spielhalle mit alten automaten – Philomena –
casino mit den besten live roulette
Feel free to surf to my page; Online Spielautomaten Geld Gewinnen
online trustly Casino Willkommensbonus ab 15 euro
retro slots online
Here is my web page blackjack cashtocode auszahlung
tischspiele niedriger einsatz
Here is my web blog: xxxtreme Lightning Roulette online echtgeld
casino ohne limit Thüringen – https://hkea-holding.com/osterreichisches-Spielbanken-roulette-simulator/, revolut ab 3 euro
slots 500 bonuscode
my webpage: online casino ohne identifikation trustly
blackjack kreditkarte 150 freispiele ohne einzahlung (Magdalena)
casino 30 euro klarna [Barbara] sofort auszahlung handyrechnung
Casino Mindesteinzahlung 50 Euro Cashtocode mindesteinzahlung 10 euro sofortüberweisung
casino ohne limit mit lastschrift
Also visit my web blog; keno online echtgeld – https://yaelstiles.com,
free grand falls casino tommy james and the shondells (Natisha) cash no deposit usa, no deposit bonus uk
online casinos and craps betting usa, or usa poker app
casino ohne lugas ethereum [Eusebia] mit spielautomaten
tischspiele niedriger einsatz
Here is my blog post – casino um Echtes Geld mit Startguthaben
В этой статье мы подробно рассматриваем проверенные методы борьбы с зависимостями, включая психотерапию, медикаментозное лечение и поддержку со стороны общества. Мы акцентируем внимание на важности комплексного подхода и возможности успешного восстановления для людей, столкнувшихся с этой проблемой.
Получить профессиональную консультацию – [url=https://semyadoma.ru/zdorove/narkologicheskaya-klinika-v-samare-ano]медэлен[/url]
top casino app niedersachsen ohne 5 sekunden
casino slots mit cluster Pays; https://cumbespirits.Com/?p=225787, 200
euro einzahlung paypal
150 bonus online casino 10 einzahlen 50 spielen (Angelia)
casino 10 euro einzahlen 20 euro spielen
Here is my site – roulette welche zahlen sind rot
online casino ab 5 euro muchbetter
Also visit my site; freispiele ohne einzahlung
http://www.isexsex.com/home.php?mod=space&uid=3188589&do=profile&from=space
casino bonus mit cashlib einzahlung – Hallie, 5 euro einzahlung ethereum
200 free spins ohne online casino mit google pay einzahlung (https://distributie-congelate.ro/blackjack-online-mit-einzahlung-ab-1-euro-in-osterreich-2026/)
Automaten casino bremerhaven dienstag bonus
kasyno google pay 2026
Visit my website gry online w bingo (http://Amarszalek.pl/graj-za-darmo-w-maszyny-hazardowe-do-gier/)
geld Gewonnen online casino belasting mit google play bezahlen