各位大神!求助一个问题。
win 7 x64下,双击运行vbs没问题,但是用命令调用打开这个vbs就报错,无法创建object
我另外一台win7 x64电脑打开这个文件就没问题,但是我记不起是运行过一条什么指令了(肯定是运行过的)。
网上好多说注册两个文件
regsvr32 WSHom.Ocx
regsvr32 wshext.dll
但是老是注册不成功
说要用管理员注册,但是我是用管理员,还用了administrator,还是注册不了。
最后无解了,只能求助各位!
急!希望各位能大力帮助啊!
多谢多谢!!!
附上代码:- Set WshShell=createobject("wscript.shell")
- WScript.Sleep 200
-
- Set FSO = CreateObject("Scripting.FileSystemObject")
- Set Form = WScript.CreateObject("Forms.Form.1")
- Set TextBox = Form.Controls.Add("Forms.TextBox.1").Object
- TextBox.Multiline = True
- Set GF = FSO.OpenTextFile("E:\LittleCode\ahk\EISP.txt",1)
- TextBox.Text = GF.ReadAll
- With TextBox
- .Selstart = 0 'Min
- .Sellength=Len(.Text)
- .Copy
- End With
-
- WshShell.SendKeys "^v"
-
- WshShell.Run "E:\LittleCode\ahk\CleanClip.bat /start",0
-
- WScript.Sleep 200
- WshShell.SendKeys "{TAB 36}"
- WScript.Sleep 200
- WshShell.SendKeys "{Enter}"
- WScript.Sleep 1000
- WshShell.SendKeys "{Enter}"
复制代码
|