我正在尝试从同一网络上的服务器访问并运行setup.exe。
只有当两个电脑都没有域时,此代码才能:
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.RemoveNetworkDrive "M:", True, True
WshNetwork.MapNetworkDrive "M:", "\\192.168.0.10\share", myUserName, myPassword
Set shell = WScript.CreateObject("Wscript.Shell")
shell.CurrentDirectory = "M:\Setup"
shell.Run("setup.exe"), 0 , True
WshNetwork.RemoveNetworkDrive "M:", True, True
我需要添加哪些额外的细节,以便个人电脑可以从服务器访问该文件?