Skip to content

Verify if a process is executing and notificate via e-mail on Windows

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

Published inwindows

2,846 Comments

  1. 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/

  2. 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

  3. 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/

  4. 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!

  5. เนื้อหานี้ อ่านแล้วได้ความรู้เพิ่ม ค่ะ
    ผม ไปเจอรายละเอียดของ ข้อมูลเพิ่มเติม
    สามารถอ่านได้ที่ betflik19
    น่าจะถูกใจใครหลายคน
    มีตัวอย่างประกอบชัดเจน
    ขอบคุณที่แชร์ บทความคุณภาพ นี้
    และหวังว่าจะมีข้อมูลใหม่ๆ มาแบ่งปันอีก

  6. Have you ever thought about publishing an ebook or guest authoring
    on other websites? I have a blog based on the same ideas you discuss and would love to have you share
    some stories/information. I know my audience would value your work.
    If you are even remotely interested, feel free to shoot me an e mail.

  7. Portanto, não deixe de buscar auxílio com urologistas ou sexólogos com experiência no tratamento de disfunções sexuais.
    Urologistas e sexólogos são profissionais capacitados pra encarar com uma
    série de disfunções sexuais. A principal semelhança entre estes profissionais é que ambos lidam com
    dúvidas relacionadas à saúde sexual, como as disfunções sexuais.
    Antitestosterona (como Avodart): Esses medicamentos bloqueiam a ação da
    testosterona, impedindo o desenvolvimento da próstata. A título de exemplo,
    se houver uma queda de testosterona, é possível fazer uma reposição hormonal. https://diet365.fit/g1-energsex-funciona-anvisa-composicao-preco-valor-comprar-resenha-farmacia-bula-reclame-aqui-saiba-tudo-2025/

  8. Thank you for the good writeup. It in truth used to
    be a leisure account it. Look complicated to far delivered agreeable from you!

    However, how can we be in contact?

  9. A título de exemplo, a falta de exercício físico, consumo de álcool
    e drogas, consumo descontrolado de certos alimentos que afetam a pressão arterial ou o bom funcionamento do organismo
    no geral podem transportar à perda de ereção.
    Estudos efetuados na Revista Factores de Risco, a porcentagem de pessoas na faixa de 34-setenta e cinco
    anos com disfunção erétil e que são assim como hipertensos chega
    a 68%. Ou seja, os dados são claros: cuidar da pressão nas
    artérias e dos vasos sanguíneos é imprescindível pra comprar ereções satisfatórias com o atravessar do
    tempo. Por quanto mais tempo esses hábitos são praticados, mais efeitos eles provocarão perante o corpo.
    Aqui, para além dos efeitos de intervenções cirúrgicas existem os efeitos psicológicos relacionados aos tratamentos.

    Embora as ervas faladas por esse glossário possam ser benéficas pra melhorar a função erétil, é interessante recordar que
    cada pessoa é única e poderá responder de maneira desigual a esses tratamentos. https://diet365.fit/g1-gel-taurus-funciona-anvisa-composicao-preco-valor-comprar-resenha-farmacia-bula-reclame-aqui-saiba-tudo-2025/

  10. My family members all the time say that I am killing my time here at net, however I know I am getting familiarity everyday by reading thes fastidious content.

  11. Heya fantastic blog! Does running a blog such as this
    require a great deal of work? I have virtually no knowledge
    of computer programming however I was hoping to start my own blog soon. Anyway, if you have any recommendations or tips
    for new blog owners please share. I understand this
    is off topic but I simply had to ask. Many thanks!

  12. Evite posições de alto risco: Tenha cuidado
    com posições sexuais que aumentam o risco de flexão ou trauma no pênis.
    O spray, por outro lado, permite uma dosagem mais exata e controlada, o que podes cooperar para a redução do
    risco de efeitos colaterais, dando um tratamento mais seguro e personalizado para as necessidades individuais do paciente.
    A dosagem do tadalafila spray poderá variar de acordo com as necessidades individuais
    do paciente. Tadalafila spray é uma inovadora formulação farmacêutica destinada
    ao tratamento da disfunção erétil. O tadalafila spray é uma inovação promissora que oferece uma solução competente, segura e prática para o tratamento da disfunção erétil.
    A administração sublingual da tadalafila a partir de
    spray traz inúmeras vantagens. Este jeito de administração apresenta não só conveniência e discrição, no entanto também a circunstância de conservar uma
    resposta sexual mais natural e espontânea. Este recurso não só
    acelera o começo da ação do remédio, todavia também se intensifica
    sua biodisponibilidade, o que pode potencializar sua
    eficiência. https://vibs.me/g1-potenciagra-funciona-anvisa-composicao-preco-valor-comprar-resenha-farmacia-bula-reclame-aqui-saiba-tudo-2024/

  13. I like the helpful info you provide to your articles.
    I’ll bookmark your blog and check again right here frequently.
    I am somewhat certain I’ll learn lots of new
    stuff right here! Best of luck for the next!

  14. I was suggested this blog by my cousin. I am
    not sure whether this post is written by him as nobody else know such detailed about my difficulty.

    You are amazing! Thanks!

  15. Fantastic post however I was wanting to know if you could write a litte
    more on this topic? I’d be very thankful if you could elaborate a little bit more.
    Thanks!

  16. Timely math tuition іn primary years seals learning
    gaps Ƅefore tһey widen, clears up persistent misconceptions, аnd gently readies
    students foг the more advanced mathematics curriculum іn secondary
    school.

    Ιn laгge secondary classrooms wheгe personal questions frequently
    remain unanswered, ath tuition proviԀes tailored оne-on-one guidance tto clarify
    tough arеɑs such as simultaneous equations and quadratics.

    Giѵen thе tight time constraints аnd extensive syllabus coverage οf the JC programme, regular math
    tuition helps students stay organised, review productively, ɑnd ɑvoid panic
    cramming.

    Secondary sstudents ɑcross Singapore increasingly depend ᧐n online math
    tuition tο receive instant doubt-clearing sessions оn demanding topics ⅼike logarithms, sequences ɑnd differentiation, using shared digital whiteboards гegardless ⲟf traffic conditions.

    By integrating real-ᴡorld applications іn lessons,
    OMT ѕhows Singapore trainees how math powers daily technologies, sparking passion аnd drive for exam excellence.

    Founded іn 2013 by Ꮇr. Justin Tan, OMT Math
    Tuition has actuallʏ assisted many trainees ace examinations ⅼike PSLE, O-Levels,
    ɑnd A-Levels wіtһ proven analytical strategies.

    Ԝith students іn Singapore begіnning official mathematics education from the first day
    and dealing with һigh-stakes assessments, math tuition սseѕ the additional edge needеd to achieve
    leading efficiency in tһiѕ vital subject.

    Ultimately, primary school school math tuition іs important fοr PSLE quality, аs it gears սp trainees ѡith thе tools
    to achieve leading bands аnd protect favored secondary school positionings.

    Ԝith the O Level mathematics syllabus occasionally progressing,tuition кeeps students upgraded
    ߋn modifications, ensuring tһey ɑre well-prepared foг pгesent layouts.

    Ᏼy supplying substantial exercise ᴡith past A Level
    examination papers, math tuition acquaints students ѡith
    question layouts ɑnd noting schemes for optimum performance.

    Ꮤhat makes OMT phenomenal іѕ its exclusive curriculum tһаt straightens with MOE ѡhile introducing aesthetic һelp likе bar modeling in ingenious mеans for primary learners.

    OMT’ѕ on-line math tuition lеts you modify at уour very oԝn pace lah,
    so sаy goodbye to rushing and your mathematics
    qualities ѡill skyrocket progressively.

    Tuition stresses tіme management appгoaches, vital fߋr allocating
    efforts intelligently іn multi-sеction Singapore math examinations.

    Ⅿy page e math tuition singapore (https://websg1.s3.us-east-005.backblazeb2.com/math-tuition/6/common-pitfalls-to-avoid-when-helping-with-sec-4-math-homework.html)

  17. It’s really a great and useful piece of info. I am happy that you shared this helpful information with us.

    Please stay us informed like this. Thanks for sharing.

Leave a Reply

Your email address will not be published. Required fields are marked *