none
Error on Line 150 and Character 2 - Windows Updates Reporting Email Script RRS feed

  • Question

  • https://www.tachytelic.net/2007/08/windows-update-automatic-e-mail-notification/

    I am trying to test this script from the above link to check on the local server if there are windows updates downloaded and ready to install, then email me. It keeps telling me error on line 150 and character 2.  I have very basic experience with scripts/coding.

    Here is the line it is complaining about.  Can somebody please assist as to what is the error/fix?

    Set HTMLFile = fso.opentextfile((fso.GetParentFolderName(WScript.ScriptFullName) & "\updatetemplate.htm"),1,false)

    Error:

    Cheerz!


    • Edited by WildPacket Monday, April 15, 2019 4:06 PM
    Monday, April 15, 2019 4:02 PM

Answers

  • resolved.  I need to keep the file updatetemplate.htm in the folder where I had the script.
    • Marked as answer by WildPacket Tuesday, April 16, 2019 6:13 PM
    Tuesday, April 16, 2019 6:13 PM

All replies

  • We do not support scripts found at the internet. You should contact the author about issues or questions.

    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    Monday, April 15, 2019 5:01 PM
  • resolved.  I need to keep the file updatetemplate.htm in the folder where I had the script.
    • Marked as answer by WildPacket Tuesday, April 16, 2019 6:13 PM
    Tuesday, April 16, 2019 6:13 PM