关于For Each 的问题。
总是出:“434 要求对象”的错误。
代码如下:
ShareRoot = "WinNT://"
Set fserv = GetObject("WinNT://pc14/LanmanServer")
Set share = fserv.Create("fileshare", "DWNLDShare")
For Each share In fserv
If share.Path = Text1.Text Then
MsgBox share.Name + " " + share.Path
End If
Next share
我用的是WIN2000 Server