宝山信息港
科技
当前位置:首页 > 科技

在C中应用PSFTP实现SFTP上传4

发布时间:2019-06-19 21:31:25 编辑:笔名

  catch(Exception ex)

  ...{

  spose();

  //Delete the script file

  lete(scriptLocation);

  throw new Exception("Error occured during upload file to remote server!",ex);

  }

  }

  #endregion

  CreateScriptFile#region CreateScriptFile

  /**////

  /// Create Batch Script File

  ///

  /// file full path

  private string CreateScriptFile()

  ...{

  StreamWriter fileStream;

  string scriptLocation = "";

  //Get the Batch Script to execute

  StringBuilder sbdScript = new StringBuilder();

  //Redirect to the default remote location

  pend("cd " + this.m_RemoteLocation + wLine);

  //Upload files

  查看本文来源

小儿肠痉挛腹痛难治吗
小儿肠痉挛腹痛饮食注意什么
小儿肠痉挛腹痛有哪些症状
友情链接