Re: output the directory listing to list file to move the files
Im expecting a result like this.d---- 7/10/2014 2:13 PM Archive
-a--- 6/19/2014 12:46 PM 158 ORD092140616130015.csv
-a--- 6/19/2014 12:46 PM 79 ORD094140616130015.csv
Please suggest how this could be accomplished.
WinSCP has fixed
ls
format. You cannot change it.
If you want custom format, use WinSCP .NET assembly with its
Session.ListDirectory
method and format the output as you like.
See https://winscp.net/eng/docs/library_session_listdirectory
Check PowerShell example, if you have no other language preference.