当用Inet控件进行上载时,如果路径或文件名出空格时不能进行上传,谁能有解决方案.
     因为Inet控件的命令是以空格分隔的.

解决方案 »

  1.   

    Inet1.Execute  Inet1.URL,  "dir  """  &  dirName  &  """"  
           Do  
                   DoEvents  
           Loop  While  Inet1.StillExecuting  =  True  
    把dir命令换成你自己要用的,这样就可以处理空格
      

  2.   

    Private  Sub  sendFile(localFile  As  String,  remoteFile  As  String)  
         Inet1.Execute  Inet1.URL,  "send  """  &  localFile  &  """"  &  "  "  &  """"  &  remoteFile  &  """"  
           Do  
                   DoEvents  
           Loop  While  Inet1.StillExecuting  =  True  
     
    End  Sub
    上传可以用这个方法