複製鏈接
請複製以下鏈接發送給好友

wshom.ocx

鎖定
wshom.ocx是系統電腦文件,用來提供WshShell對象和WshNetwork對象接口的訪問。
外文名
wshom.ocx
DLL 文件
wshom 或者 wshom.ocx
安全等級
0

wshom.ocx文件簡介

文件信息
DLL 文件: wshom 或者 wshom.ocx
DLL 名稱: Windows Script Host Runtime Library
描述: wshom.ocx是Windows本地腳本對象運行時相關文件。
屬於: Windows Script Host
系統 DLL文件: 否
常見錯誤: File Not Found, Missing File, Exception Errors
安全等級 (0-5): 0
ActiveX 控件
庫名稱:IWshRuntimeLibrary
庫描述:Windows Script Host Object Model
WshShell對象
ProgID WScript.Shell 或 WScript.Shell.1
CLSID 72C24DD5-D70A-438B-8A42-98424B88AFB8 或 F935DC22-1CF0-11D0-ADB9-00C04FD58A0B
WshNetwork對象
ProgID WScript.Network 或 WScript.Network.1
CLSID 093FF999-1EA0-4079-9525-9614C3504B74 或 F935DC26-1CF0-11D0-ADB9-00C04FD58A0B

wshom.ocx解決方法

出現OCX文件缺少問題的大部分原因是因該文件被木馬病毒破壞導致系統程序找不到此文件,出現錯誤提示框,或程序無法運行。解決此問題只需找到專業的OCX文件下載網站,下載該文件後,找到適合程序的文件版本,複製到相應目錄,即可解決。
1、Windows 95/98/Me系統,則複製到C:\Windows\System\ 目錄下。
2、Windows NT/2000系統,則複製到C:\WINNT\System32\ 目錄下。
3、Windows XP系統,則複製到C:Windows\System32\ 目錄下。
4、Windows 7/8系統,則複製到C:\Windows\System32\ 目錄下。
點“開始”“運行”(或者按快捷鍵 徽標+R),輸入 regsvr32 wshom.ocx 點“確定”。

wshom.ocx示例代碼

用WshShell對象創建Internet快捷方式
Set WshShell = Wscript.CreateObject("Wscript.Shell")
Set oShellLink = WshShell.CreateShortcut("Current Script.lnk")
oShellLink.TargetPath = Wscript.ScriptFullName
oShellLink.Save
Set oUrlLink = WshShell.CreateShortcut("Microsoft Web Site.URL")
oUrlLink.TargetPath = http://……
oUrlLink.Save