Private Sub Command1_Click() Shell "net use \\Mqc\downloads 11111 /user:guest" 'Shell "\\Mqc\downloads\qc100.zip" End Sub出现问题 The option "USER:GUEST" is unknown. Make sure you are specifying a valid option, and then try again. For help, type NET USE /? at the command prompt.
我试过了 The option "USER: " is unknown. Make sure you are specifying a valid option, and then try again. For help, type NET USE /? at the command prompt.
Private Sub Command1_Click() Shell "net use \\Mqc\downloads 11111" Shell "\\Mqc\downloads\qc100.zip" End SubShell "\\Mqc\downloads\qc100.zip" 说这个是无效的过程或参数.
还留下了一个很难看的MS-DOS 窗口. 还有别的方法吗?
有几种可能: 1.我知道98下是guest,但95 ....太老了,我没试过 2.可能这个连接已建上了 你用dos下net use 看看是不是已经有了该机器的连接? 如果有你可以: net use \\mqc /del 然后再试,如果还不行,那我也没招了,这个在2000下是肯定OK的。下班了。
比如说B机子的机器名为computerB 共享文件为share 程序为aa.exe
用户名为 guest 密码:123456在A机子上用VBshell "net use \\computerB\ipc$ 123456 /user:guest"
shell "\\computerB\share\aa.exe"
如果你是在共享时各字后加一个$的话shell "net use \\computerB\ipc$ 123456 /user:guest"
shell "\\computerB\share$\aa.exe"
Shell "net use \\Mqc\downloads 11111 /user:guest"
'Shell "\\Mqc\downloads\qc100.zip"
End Sub出现问题
The option "USER:GUEST" is unknown. Make sure you are specifying a valid
option, and then try again.
For help, type NET USE /? at the command prompt.
The option "USER: " is unknown. Make sure you are specifying a valid
option, and then try again.
For help, type NET USE /? at the command prompt.
Shell "net use \\Mqc\downloads 11111"
Shell "\\Mqc\downloads\qc100.zip"
End SubShell "\\Mqc\downloads\qc100.zip"
说这个是无效的过程或参数.
还有别的方法吗?
1.我知道98下是guest,但95 ....太老了,我没试过
2.可能这个连接已建上了
你用dos下net use 看看是不是已经有了该机器的连接?
如果有你可以:
net use \\mqc /del
然后再试,如果还不行,那我也没招了,这个在2000下是肯定OK的。下班了。