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
The Big Bass series has seen more than a dozen releases since its inception, starting with the original Big Bass Bonanza in December 2020. Following its success, Pragmatic Play expanded the series to include variations like Big Bass Bonanza Megaways and Christmas-themed slots such as Big Bass Christmas Bash, showcasing the series’ adaptability and appeal. Every fourth Wild symbol that players collect will retrigger the Free Spins feature, up to three times. We perform checks on reviews If you’re hesitant to dive straight into real-money play, the bigger bass bonanza demo allows players to explore the game without financial risk. This demo version perfectly mirrors the real game but uses virtual credits, giving players the opportunity to: Released by the Pragmatic Play slot provider in December 2020, Big Bass Bonanza quickly hooked the attention of slot fans with its cheerful fishing theme, vibrant visuals, and exciting bonus features. Played on a classic 5×3 grid with 10 fixed paylines and having a medium volatility slot with an RTP of 96.71%, it offers a balanced mix of frequent wins and big catch potential that is ideal for both newcomers and seasoned players.
https://www.bruzziboatservice.com/ricky-casino-app-review-safe-haven-for-aussie-players/
Operating a scatter pays win system means Gates of Olympus Super Scatter creates a winning combination when 8 or more matching symbols land anywhere on the grid. Players may wager 20 c to $ €240 per spin, buy free spins or super free spins, and activate an ante bet, where the default RTP when regular betting comes in at 96.5%. The ante bet puts 50% onto the stake when activated to double the chance of triggering the free spins feature. Yes, Gates of Olympus and hundreds of other Pragmatic Play games are now available on MrQ with no downloads needed. Conquer the golden gates on your mobile or tablet device today. Connect with us Gates of Olympus is yet another game by Pragmatic play (they sure know how to make them). This game is filled with excitement and heart stopping moments with huge wins, from the get go you are greeted by Zeus staring at you with his menacing eyes. But do not fear as we will make him fill our pockets with riches.
que es el handicap en las apuestas
Feel free to visit my blog Basketball-wetten.com
empresas de apuestas
My homepage Basketball-wetten.Com
I pay a visit everyday some sites and blogs to
read articles, however this website presents quality based
writing.
Apuestas tarjeta Roja perú
Wonderful items from you, man. I have understand your stuff
previous to and you’re just too fantastic. I really like what
you have obtained here, really like what you’re stating and the way
during which you are saying it. You’re making it enjoyable and you continue to take care of to stay it sensible.
I cant wait to read much more from you. That is actually a tremendous web site.
Fastidious answers in return of this issue with real arguments and telling everything
on the topic of that.