这条命令应该知道吧,就是映射磁盘的.在CMD命令符DOS下可以运行.net use Z: \\192.168.0.250\E$ "admin11028" /user:"Admin"但是我想在VB写,要怎么样写啊.像下面的代码就出错了,其它命令就行,这个命令多了几个双引号.Private Sub Command1_Click()
shell "cmd /c net use Z: \\192.168.0.250\E$ "admin11028" /user:"Admin" "
End Sub
shell "cmd /c net use Z: \\192.168.0.250\E$ "admin11028" /user:"Admin" "
End Sub
Private Sub Command1_Click()
shell "net use Z: \\192.168.0.250\E$ Password /user:Admin "
End Sub
shell "net use Z: \\192.168.0.250\E$ ""admin11028"" /user:""Admin"""