【发布时间】:2010-10-26 17:50:33
【问题描述】:
我使用来自 Powershell 的 Internet Explorer 的自动化界面以支持的格式打开网页。我想以 IE 支持的一种格式将此页面保存回磁盘。打开页面很简单:
$ie = New-Object -ComObject "InternetExplorer.Application"
$ie.Navigate("C:\MyFile.mht")
如何以另一种格式保存它?
我需要一个不提示用户的解决方案,因为我的想法是在运行多个文件的脚本中自动执行此操作。
【问题讨论】:
标签: .net internet-explorer powershell automation