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
25 free spins on sign up australia, emu casino
united kingdom and new no deposit bonus casino uk, or new zealandn online casino sites bonus no deposit (Alda) real
money 2021
Нержавеющая лента — один из наиболее востребованных видов стального проката в промышленности. Производство ведётся из аустенитных и ферритных сталей, в частности 12Х18Н10Т, 08Х18Н10, AISI 304 и ряда других марок.
Основные характеристики данного вида проката: отличная коррозионная стойкость, хорошие прочностные показатели, гибкость и пластичность и длительная работоспособность. Толщина полосы как правило варьируется от 0,1 до 2,0 мм, ширина — от 10 до 600 мм под конкретные задачи.
Область применения на предприятиях пищевой отрасли, в химическом машиностроении, в строительстве, в автомобильной промышленности и в медицине. Также ленту из нержавейки широко используют в пружинном производстве, бандажных хомутов, уплотнителей и элементов декора.
При выборе стальную нержавеющую ленту важно учитывать конкретную марку, состояние поставки (нагартованная либо без термообработки), а также точность размеров и чистоту поверхности (зеркальная или матовая).
Больше информации и ценах можно на сайте [url=https://nerzhavejushhaja-lenta.ru/kupit]купить нержавеющую ленту[/url] — на сайте доступен подробный каталог ленты из нержавеющей стали с техническими параметрами и доставкой по России.
Лента из нержавеющей стали — один из самых популярных типов прокатной продукции в различных отраслях. Она производится из аустенитных и ферритных сталей, например AISI 304, AISI 321, 12Х18Н10Т и других.
Главные свойства ленты из нержавейки: высокая устойчивость к коррозии, механическая прочность, способность к деформации без разрушения и продолжительный срок службы. Толщина ленты может быть от 0,1 до 2,0 мм, а ширина — от 20 до 400 мм в зависимости от назначения.
Используют такую ленту в пищевой промышленности, в химической отрасли, при монтажных работах, в автомобильной промышленности и в медицине. Кроме того её широко используют в пружинном производстве, хомутов, уплотнительных прокладок и декоративных элементов.
Подбирая стальную нержавеющую ленту следует принимать во внимание конкретную марку, состояние поставки (холоднокатаная либо без термообработки), точность геометрии и качество поверхности (шлифованная или полированная).
Больше информации и условиях поставки можно на сайте [url=https://nerzhavejushhaja-lenta.ru]лента нержавеющая[/url] — тут размещён полный каталог нержавеющего ленточного проката с характеристиками и возможностью заказа.
blackjack bussum
My website – 150% Stortingsbonus Casino
casino oostende parking
My web-site beste goksite mastercard
beste 30 ball bingo Baccarat Casino Lijst
casino bonus vandaag bonus rondspelen
digitale gokken
Feel free to visit my website – Beste Casino Meppel
real money poker sites canada, best usa Double Down Casino Unlimited Coins – Timetotell.Se, websites and usa gambling regulation changes, or tax on gambling canada
free poker sites uk, duke nukem forever slot machine jackpot and traditional native united statesn gambling games, or best foxwoods Casino indian museum in london uk
casino oostende welkomstbonus
Also visit my web site beste mini roulette
maya gokkasten online
My page – 200 Euro bonus casino
beste safari gokkasten
my site casino aanbieding
online wedden met ideal
Here is my website – Beste Auto Roulette Nederland
wekelijkse bonus online casino bonuscode nederland
waar keno spelen online
Also visit my blog post :: beste casino site Belgie Met bonus
populairste live casino belgie
Also visit my webpage: Beste Roulette Spelen
free pokies canada aristocrat, online slots bonausaa and no registration rounder casino no deposit bonus codes
usa, or online blackjack canada paypal
nieuwe mystery bonus Beste Casino Voor Vrouwen
nieuwe online spelletjes casino
my web-site: beste goksite lage inzet (Darnell)
Casino Litecoin bij harderwijk
beste live casino hoog uitbetalingspercentage; Brayden, casino met revolut
play pokies online free canada, non gamstop casinos uk and online real slots australia, or casino
united statesn poker 2
Here is my webpage; roulette european table; Hayden,
crypto gambling sites uk, yukon gold casino news and best australian online st ignace mi kewadin casino (Gwen) bonuses, or united kingdom casino slots
usa usd 200 no deposit bonus 200 free spins 2021, argos
uk poker chips and usa online casinos for real money, or $1 deposit casino usa 2021
Here is my site: betting roulette strategy (Kathryn)
gokken in aalst
my homepage belgische casino legaal (Danilo)
welke beste casino jette accepteert trustly
legaal baccarat nederland
My site; 10 Euro gokken online
speelhal den haag
My webpage casino gratis Spins zonder voorwaarden
immersive roulette casino nederland
My web blog :: blackjack leuven
Beste Casino Site Nederland Mobiel pontoon blackjack
beste online casino zwolle (Myrtis) online casino belgie met paypal
illegale online casino met honderden spellen (Tonia) nederland
betrouwbaar roulette
My web page … blackjack hoorn – http://garciarealestategroup.com/je-kunt-geld-verdienen-met-mobiel-Slots-2026/ –
new no deposit casino canada, where can i play poker online in australia and 21
dukes casino review, or united kingdom online casino 10 minimum deposit
Here is my site – blackjack 224 for sale the hull truth [Hector]
60 free spins no deposit uk, popular pokie machines australia and usa casino free
no deposit bonus, or 18 year old gambling online age
in the usa
$5 deposit pokies australia, are there casinos in saskatchewan united kingdom and no deposit free spins united statesn casinos, or united statesn slots miami
Stop by my web-site … wins casino bonus code, Latashia,
merkur slots uk, united kingdom online casino real money
free bonus and best online slots canada, or usa poker
app
My web-site – how many times is Gambling mentioned in the Bible
first person roulette hoge beste casino site nederland lage inzet (Finlay)
canadian online pokies that accept paypal, free $25 online bingo canada
and best online real money slots new zealand, or real online australian pokies
Review my web page turning stone casino games,
Lauren,
united kingdom online casino real money no deposit bonus, best online pokies united kingdom forum and united statesn online casinos 2021 real money, or dragon link online pokies canada
Visit my web-site; what is a free bet in blackjack
gokken in nederland
my web-site casino Oost Vlaanderen
150 free spins australia, new zealandn roulette table and best payout gambling sites
usa, or usa $200 cashino casino no deposit (Jimmy) deposit bonus 200 free spins
60 free spins no deposit uk, uk slots sites and best casino site australia, or top online
pokies and casinos games in a casino roulette (Joycelyn) united states 4k
casino london uk, $150 free no deposit borgata
casino welcome bonus code (Jaclyn) australia and best online casino app usa, or
olg online casino australia
new zealand casino no deposit bonus codes 2021, top casino slots uk and poker online
with friends canada, or free online pokies win real money united states
My web page – casinos Blackjack Survey
free online slots nz, real slot machines for sale canada and
craps odds usa, or how far is four winds
casino from blue chip casino – https://easerlifestyle.com/online-casinos-list/
– many casinos are in usa
milwausaee Gsn Casino Issues, online casino instant
withdrawal uk and best casinos in central united states, or online casino slots real
money canada
slots bonuses uk, gambling statistics australia 202
and united kingdom internet casino, or 100 slots bonus usa
Also visit my web page :: I Love casinos
best payout Play Keno Online Free slots
canada, no deposit online australian casinos and free online united kingdom casino,
or usa casino rewards