1

我只是一个潜伏者,想知道我是否可以创建一个可以运行命令提示符的 vbscript 以及我想在命令提示符中键入的其他命令。

这是我想要做的:

我想通过这个命令使用命令提示符创建一个 wifi 热点;

`netsh wlan set hostednetwork mode=allow ssid=NAME key=PASSWORD 

netsh wlan start hostednetwork'

还有一件事,任何人都可以帮助我如何使用命令提示符共享我的网络以使我的笔记本电脑 wifi 热点?

4

1 回答 1

1

You want the "Shell" object to run commands:

strText="netsh wlan set hostednetwork mode=allow ssid=NAME key=PASSWORD"
Set shll = Wscript.CreateObject("Wscript.Shell")
Return = shll.Run(strText, 1, TRUE)

you can add as many "shll.run" commands as you need to - the TRUE flag above will make VBScript wait for the command to finish before continuing the script.

You would be better off looking at Powershell for sharing network connections.

于 2013-08-13T10:37:28.580 回答