re: help with HTA GetObject function RRS feed

  • Question

  • Hello All,

        I am new to HTA and window scripting but I am learning and I find out that HTA and window scripting is more widely used and powerful than unix shell scripting. I have a very basic question on HTA and window scripting that I would like to seek your helps and expertise. In my very basic  HTA code , I just want to get the window shell script on my F network drive and display it used MsgBox for my sake of debugging and seeing if I get anything by :

               Set oParms = GetObject("script:\\myNetworkDrive\Apps\xmlParm.wsc")

               MsgBox (oParms)

               But I got an error where MsgBox (oParms) was and it said object did not support this kind of property.

               I believe that I did something wrong or I have missed some important points so If you could help by pointing out what's wrong with my code  then it would be great.

    Many Thanks!!!



    • Moved by Bill_Stewart Thursday, January 25, 2018 10:22 PM Unanswerable drive-by question
    Monday, November 13, 2017 9:38 PM

All replies

  • You cannot display an object with MsgBox. 

    Don't waste time learning HTAs.  They are obsolete.  Use PowerShell.  HTAs will likely not be part of the next version of Windows.


    Monday, November 13, 2017 11:10 PM