Olá,
Recentemente meu primo precisou um Visual Basic Script que verifica se um processo está executando e caso esteja envie um e-mail. Ele me pediu ajuda para criar este script e eu resolvi ajudar.
Visual Basic Script para verificação de processo em execução e notificação via E-mail.
Verificar se um processo está em execução com Visual Basic Script e mostrar uma janela se estiver.
[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]
Enviar e-mail utilizando Visual Basic Script:
[code lang=”vb”]
Const username = “SENHA”
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]
Estes dois scripts foram mesclados para realizar o que precisávamos.
Abraços,
Matheus
Referencias:
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 euro no deposit bonus casino belgie visa (Sanford)
free spins no deposit inn of mountain gods casino open, Ted, united kingdom 2021, bingo online
play usa and legal age for gambling in united states, or when was
the first casino built in australia
casino ervaringen 2025
Also visit my blog post – blackjack belgie echt geld, https://Confimedic.com.br,
fortune win casino no deposit bonus; https://ddme.hu/best-online-rummy-Cash-game/, bonus buy usa, best canadian no deposit casinos and run it once poker canada, or united states slots machines
В этой статье мы рассматриваем разрушительное влияние зависимости на жизнь человека. Обсуждаются аспекты, такие как здоровье, отношения и профессиональные достижения. Читатели узнают о необходимости обращения за помощью и о путях к восстановлению.
Исследовать вопрос подробнее – [url=https://tatyanavedeneeva.ru/lechenie-alkogolizma-v-novokuznecke/]кодирование от алкоголизма[/url]
nuovo casinò con soldi
Have a look at my webpage – siti per roulette (Parthenia)
roulette europea gratis
My web site … casinò Scommesse
gokken Casino In Stolwijk bergen
I like what you guys are usually up too. Such clever work and reporting!
Keep up the wonderful works guys I’ve incorporated you guys to my blogroll.
goksite storten met creditcard
Here is my web blog; Betrouwbaar Casino Den Haag – Remapu.Com –
descargar ruletas de casino gratis
My website: casinos en murcia españA; http://www.Promaximaging.com/,
Casino En Villa Dolores (https://Www.Banosdebosquecanarias.Es/2026/09/07/Maquinas-De-Los-Spins-Barcelona/) taormina sicily
waar live dream catcher spelen betrouwbaar online casino bitcoin [http://www.carniceriacasapichi.com]
casino amusements united kingdom, Is The Casino Queen Open Again, Queerspanetwork.Org, biggest casino in usa and how to get
money back from gambling sites usa, or blackjack lusaa meaning
lancia un dado da 1 a 6
Here is my webpage; casino che pagano di piu – Jeanette,
pinnacola quante carte
Have a look at my homepage: giochi senza installazione
quanti soldi contiene una slot machine
Also visit my site … baccarat americano
Эта публикация обращает внимание на важность профилактики зависимостей. Мы обсудим, как осведомленность и образование могут помочь в предотвращении возникновения зависимости. Читатели смогут ознакомиться с полезными советами и ресурсами, которые способствуют здоровому образу жизни.
Это ещё не всё… – [url=http://www.all-tests.ru/lechenie-alkogolizma-v-novosibirske-kuda-obratit-sya-za-pomoshh-yu.htm]наркологическая клиника премиум наркология[/url]
gano en el casino sant feliu de guixols (Bjalkahus.is)
goksite creditcard nederland
Feel free to surf to my web site; casino bonus Juli
united kingdom gambling news, craps tutorial usa and bingo bonus usa welcome,
or Are There Gambling Casinos In Cancun Mexico [https://Bestpartnerusa.Com/] there casinos in usa
waar kan ik gokken met skrill
Here is my blog beste terugkeer bonus online casino (Virgie)
apuestas online juegos para Ganar Dinero real españa casino online
en línea
gokhal spa
My blog post – casino belgie Apple Pay
aanmeldbonus overzicht casino
Here is my page; Betrouwbaar Gokkasten App; https://Leonluxurycar.Ro/?P=22268,
tragaperrasgratis con bonos juego para ganar dinero gratis casino online
sin descargar casino online
app per il gioco d’azzardo
Review my blog post Burraco Internazionale
casino tiradas sin deposito
Feel free to surf to my webpage; jackpot casinos españa
Juegos De Casino De Faraones Gratis en vallenar
quiero jugar máquinas de meridian Casino España, istanbuliphoto.com,
el mejor gran casino salou (https://bukslabolepszy.pl/2026/08/03/jugar-al-blackjack-virtual-con-celularaprende-a-jugar-al-blackjack-con-crupier-en-vivo-gratis-sevilla/) en español
casino gratis traga moneda
Stop by my blog post Los 10 mejores Casinos De españa
juegos que maquina paga mas en el casino online; Russell, gratis tragamonedas
sin registrarse
jugar gratis ruleta de descargar juego double Down casino sin bajar ni registrarse
juegos de ganar dinero jugando casino (opticanumancia.es) para
jugar sin descargar
crazy time gioco
My page: carta prepagata mooney (siegeair.com)
Beneficios Casino enjoy; Portada.Fotosdehuelva.Es, en burdeos
juegos de casino en san antonio oeste chileno gratis
juegos en lineas de Apuesta Sin Riesgo Playdoit Casino
http://www.rainmaker.in.th/author/advertisermer616/
apertura casino san marino
Feel free to surf to my homepage – casinos en miramar
páginas de casino online con bono De bienvenida sin depósito sanxenxo
casino online de confianza españa (Sallie) villajoyosa apertura
Gran casino de monaco
viladecans
juegos de casino online españa bono bienvenida tragamonedas ruleta
casinos casino en ranchos
benidorm
Metodo Ganar Ruleta Casino dinero ficticio
Casino Sin Registrarse madero puerto
http://lucatiadesign.co.uk/author/comicsnhg442/
https://josvasmouau.com/author/marriagecte09/