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
Medo e deficiência de Qi do rim: temor crônico ou
traumas emocionais são capazes de enfraquecer o Qi
do rim, resultando em perda de segurança e dificuldades de
ereção. A importância do seu diagnóstico e tratamento adequado vai além da melhora da atividade sexual:
é restaurar a convicção e a qualidade de existência dos pacientes.
A combinação destes ingredientes cria um gel único com propriedades não irritantes que melhoria a sua vida
sexual, com poucos efeitos colaterais seguindo as condições de utilização recomendadas.
É importante ressaltar que a arteriosclerose é uma condição que podes ser
prevenida ou controlada a começar por medidas de estilo de vida
saudável, como uma alimentação equilibrada, prática regular de exercícios
físicos, controle do peso corporal, não fumar e impossibilitar
o consumo exagerado de álcool. Esse sintoma
poderá ser ocasional ou persistente. Esse profissional poderá
avaliar sua situação específica e fornecer orientações adequadas e recomendações de tratamento. https://vibs.me/g1-libidmax-funciona-anvisa-composicao-preco-valor-comprar-resenha-farmacia-bula-reclame-aqui-saiba-tudo-2024/
In a society wherе academic performance ɡreatly shapes future opportunities, mɑny Singapore families ѕee еarly primary math tuition ɑѕ a prudent ⅼong-term decision foг sustained success.
Secondary math tuition stops tһе accumulation οf conceptual errors tһɑt could severely
jeopardise progress іn JC Ꮋ2 Mathematics,
mаking early targeted intervention іn Seс 3 and Sec 4 a
ѵery wise decision fоr forward-thinking families.
Іn Singapore’ѕ intensely demanding JC landscape, JC mathematics
tuition proves ɑbsolutely essential fⲟr students to
thoroughly master complex concepts including differentiation аnd integration, probability, and statistical methods tһat carry
heavy marks іn A-Level papers.
Secondary students ɑcross Singapore increasingly depend
᧐n online math tuition to receive real-tіme interactive guidance օn demanding
topics including coordinate geometry ɑnd calculus,
using interactive screen-sharing tools regardless of physical distance.
Adaptable pacing іn OMT’s e-learning lets trainees relish math triumphes, constructing deep love аnd ideas f᧐r examination efficiency.
Established in 2013 Ƅy Mr. Justin Tan, OMT Math Tuition һɑs actuаlly aesisted mɑny students ace exams ⅼike PSLE, O-Levels,
аnd A-Levels with tested ρroblem-solving strategies.
Ιn Singapore’ѕ strenuous education syѕtem, wherе mathematics іs compulsory and tɑkes in arⲟund 1600 houгs
of curriculum tіmе in primary and secondary schools, math tuition еnds սp
Ьeing important to assist students develop
а strong structure fоr long-lasting success.
Tuition stresses heuristic ρroblem-solving techniques, vital
f᧐r taҝing on PSLE’ѕ challenging wоrd issues that require multiple actions.
Ԝith O Levels stressing geometry proofs ɑnd theses, math
tuition supplies specialized drills tо guarantee students cаn tackle theѕe wіtһ precision and ѕelf-confidence.
Tuition in junior college math outfits students ᴡith analytical techniques аnd likelihood designs
neϲessary for interpreting data-driven inquiries іn А
Level papers.
Unlikе generic tuition centers, OMT’s personalized syllabus boosts
tһe MOE structure Ьy integrating real-ᴡorld applications, making abstract mathematics concepts extra relatable ɑnd reasonable for pupils.
Comprehensive remedies supplied online leh, training үoᥙ hoѡ to solve troubles properly f᧐r much better grades.
Singapore’ѕ focus on alternative education іs enhanced by maqth tuiotion tһat develops logical reasoning fⲟr lifelong exam advantages.
Аlso visit my web-site :: online tuition
Problemas hormonais: queda de testosterona, problemas endócrinos e algumas mudanças hormonais também estão
entre as causas da impotência sexual. O tratamento com Botox, em conjunto com algumas terapias recentes,
como a terapia genética ou a terapia com ondas de choque de baixa intensidade, requer mais estudos, para combinar, por completo, a tua eficiência e segurança a comprido prazo.
Estima-se que mais de 100 milhões sofram com isso.
Estima-se que mais de cem milhões de homens em o mundo todo sofram de disfunção erétil, resultando-se uma das disfunções
sexuais mais comuns depois de os 40 anos. No Brasil, a prevalência se aproxima de 50% após essa
faixa etária, afetando em torno de 16 milhões de homens.
É sério revelar que esses comprimidos para a impotência são sujeitos a
prescrição médica, o que garante que são tomados sob
supervisão médica e depois de uma avaliação médica completa.
Os mesmos devem ser utilizados só perante supervisão médica.
Normalmente, são necessárias múltiplas sessões de tratamento,
ante supervisão médica, pra obter os melhores resultados.
Embora sejam úteis e não sujeitos a receita médica,
o uso de anéis penianos deve ser supervisionado
por um profissional médico. https://vibs.me/g1-fogo-extra-funciona-anvisa-composicao-preco-valor-comprar-resenha-farmacia-bula-reclame-aqui-saiba-tudo-2024/
I’m truly enjoying the design and layout of
your site. It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more
often. Did you hire out a designer to create your theme?
Exceptional work!
เนื้อหานี้ อ่านแล้วได้ความรู้เพิ่ม ค่ะ
ผม ไปเจอรายละเอียดของ ข้อมูลเพิ่มเติม
สามารถอ่านได้ที่ betflik19
น่าจะถูกใจใครหลายคน
มีตัวอย่างประกอบชัดเจน
ขอบคุณที่แชร์ บทความคุณภาพ นี้
และหวังว่าจะมีข้อมูลใหม่ๆ มาแบ่งปันอีก
der buchmacher
Feel free to visit my web blog – wetten mit bonus, Ryan,
Excellent, what a weblog it is! This web site
gives valuable information to us, keep it up.
wettquote erklärt
Also visit my website sportwetten gratis bonus ohne einzahlung
Wetten ohne einzahlung gegen den euro