【发布时间】:2014-04-16 15:47:54
【问题描述】:
目前我正在使用两个命令。
First => 这将列出特定路径上的所有文件:
CommandText += @"/command ""option batch abort"" ""option confirm off"" ""Open """"" + SFTPAddress;
CommandText += @""""" -passive=on"" ""Put """"" + SourcePath;
CommandText += @""""" """"" + TargetPath + @"""""";
CommandText += @""" ""ls """"" + TargetPath + @"""""";
CommandText += @""" ""close"" ""exit"" ";
CommandText += @"/xmllog=""" + logname + @"""";
Second => 这将列出特定文件的文件信息:
CommandText += @"/command ""option batch abort"" ""option confirm off"" ""Open """"" + SFTPAddress;
CommandText += @""""" -passive=on"" ""Put """"" + SourcePath;
CommandText += @""""" """"" + TargetPath + @"""""";
CommandText += @""" ""stat """"" + TargetPath + filename + @"""""";
CommandText += @""" ""close"" ""exit"" ";
CommandText += @"/xmllog=""" + logname + @"""";
我需要的是使用命令行列出在特定日期上传的所有文件以及文件信息。
【问题讨论】: