Send email (use of variable "machine name" when running .exe)
Hello,
I am running a simple task to defrag the default C:\ drive. After running the task I would like to use the send email feature to send me an email letting me know that defrag has completed on machine name.
As this is an .exe file created and running on about 100 systems I would like to create 1 single .exe file to be installed on all the systems.
Is there a way to have the email know which system the task is running on using a variable?
So far the only way I know how to do this is create individual .exe files that in the email body I specify the system name.
Any suggestions?
Thank you,
|