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
double chance explained
Feel free to visit my web-site :: online sports betting sites
Запой — это тяжелое состояние, при котором человек на протяжении нескольких дней или даже недель не может самостоятельно перестать употреблять алкоголь. Оно сопровождается сильной интоксикацией, продуктами распада алкоголя в крови, выраженной абстиненцией, бессонницей, тревожностью, отсутствием аппетита, болями, скачками артериального давления и другими опасными симптомами. Организм страдает от токсинов, нарастает угроза развития белой горячки и алкогольного психоза. В такой момент важно действовать быстро: чем раньше будет оказана медицинская помощь, тем ниже риск осложнений со стороны сердца, печени, мозга и нервной системы. Наркологическая клиника в Москве уже более 15 лет помогает пациентам выйти из запоя безопасно, анонимно и с максимальным вниманием к каждому обратившемуся. Мы работаем круглосуточно, выезжаем на дом по любому адресу в московской области и принимаем в собственном стационаре. Наши специалисты — это опытные врачи психиатры-наркологи, психотерапевты, психологи, реаниматологи и квалифицированные медсестры, которые используют современные методы детоксикации, медикаментозной поддержки и восстановительной терапии. Главная цель — не просто снять острые симптомы, но и создать условия для дальнейшего лечения алкоголизма и возвращения человека к полноценной жизни без алкоголя. Мы знаем, как помочь даже в самых тяжелых случаях, и даём гарантии на все виды услуг. Один звонок в нашу клинику может спасти жизнь.
Изучить вопрос подробнее – [url=https://1.vyvod-iz-zapoya-moskva011.ru/]https://1.vyvod-iz-zapoya-moskva011.ru/[/url]
kladionice koje primaju kripto daruvar
odds med bankid
Stop by my homepage :: Vinnare SpelföRslag
букмейкъри с бързо изплащане
My web blog система 1×2
oran karşılaştırma
my web page – bilyoner Para çEkme limiti
best new betting sites strategy for betting
Been on Single Bet Calculator for a good few months, mainly in the evenings after work, so make of that what you will. The lobby is genuinely big — about 2,500 slots last time I looked, with the usual suspects in there: Pragmatic Play, Big Time Gaming, Microgaming. Sweet Bonanza and Book of Dead get most of my spins, although the older NetEnt slots feel less brutal.
The new player bonus is 100% up to ?500 with 75 free spins, with wagering at 30x which isn’t the worst I’ve seen. To be fair, I only cleared it because I was playing anyway — you’ve got a week on the spins, and that caught me out. There’s a small no deposit thing too — around ?5 for verifying your account, small, but I’ll take it.
Live section is where I actually spend most of my time. It’s Evolution running it, so you get real croupiers, loads of roulette and blackjack seats, plus stuff like — Crazy Time being the obvious one. Never had a stream drop on me, which is more than I can say for a couple of other sites. Worth a look at the up-to-date terms via [url=https://justnock.com/read-blog/27762]bonus at Double Bet Calculator[/url] rather than trusting my numbers.
Cashouts at Single Bet Calculator have been decent — Skrill came back in about a day both times, debit card ran 2-3 working days. You’ve got Visa, Mastercard, e-wallets and Bitcoin, minimum’s a tenner. Verification was the annoying bit — passport and proof of address which took 48 hours.
Sign-up took me about five minutes, they hold a UK licence with all the safer gambling tools baked in. No app on the store, it’s a browser thing and honestly I don’t miss it. The live chat at Single Bet Calculator answers within a few minutes usually, though you have to get past the bot first. Human staff sorted my query in one go.
web wedden op Hockey (https://onah.be/eth-vs-fiat-waarom-steeds-meer-spelers-kiezen-voor-crypto/) virtual 2026
bookmaker weddenschap systeem
My page … Nieuwe site wedden Op snooker