如何用VBS打开文件?

2025-03-12 14:05:18
推荐回答(2个)
回答1:

CreateObject ("WSCript.shell").run 你的文件路径""

回答2:

用记事本编辑下面内容,然后将后缀名更改为vbs
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "notepad.exe"//打开一个记事本
set oshell = nothing