扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
foreach(object file in this.m_UploadFiles)
...{
sbdScript.Append("put " + (string)file + Environment.NewLine);
}
//Close the session
sbdScript.Append("quit");
//Save the Script to templocation
scriptLocation = this.m_TempLocation + @"" + System.Guid.NewGuid().ToString() + ".scr";
try
...{
fileStream = new StreamWriter(scriptLocation);
fileStream.Write(sbdScript.ToString());
fileStream.Close();
}
catch(Exception ex)
...{
fileStream = null;
throw new Exception("Error occured during create script file!",ex);
}
return scriptLocation;
}
#endregion
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。