Get Output of a PowerShell Script in a HTA

前端 未结 3 1499
无人及你
无人及你 2020-12-10 07:25

I am trying to call a powershell script from HTML Application [HTA] as :

Set WshShell = CreateObject(\"WScript.Shell\")

Set retVal = WshShell.Exec(\"powersh         


        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-10 07:49

    This is another example showing you how to get the output result in a textarea while you execute a powhershell file with a HTA !

    
    
    Execution a powershell file with HTA by Hackoo
    
    
    
    
    
    

提交回复
热议问题