我用局域网里的一台做我的主机加密了一个隐含的共享目录,我想用我的软件在别人的机子上调用,不知如何打开加密的目录? 请大侠们指教.

解决方案 »

  1.   

    如果你是用属性设置隐藏的话:
    比如说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"
      

  2.   

    还有别的方法吗? 用Shell 会跳出MS-Dos对话框,这样不是很安全.
      

  3.   

    还有,我在Win95下不要用户名.如何?
      

  4.   

    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.
      

  5.   

    我试过了
    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.  
      

  6.   

    Private Sub Command1_Click()
    Shell "net  use  \\Mqc\downloads  11111"
    Shell "\\Mqc\downloads\qc100.zip"
    End SubShell "\\Mqc\downloads\qc100.zip"
    说这个是无效的过程或参数.
      

  7.   

    还留下了一个很难看的MS-DOS 窗口.
    还有别的方法吗?
      

  8.   

    有几种可能:
    1.我知道98下是guest,但95  ....太老了,我没试过
    2.可能这个连接已建上了
       你用dos下net use 看看是不是已经有了该机器的连接?
    如果有你可以:
       net use \\mqc  /del
    然后再试,如果还不行,那我也没招了,这个在2000下是肯定OK的。下班了。
      

  9.   

    我希望最好是用API调用的方法,有MS-DOS框存在不是太好。看的别扭。