sftp - WinSCP timestamp retrieval from command line/scripting -
how last time stamp of .txt
file winscp when using .txt
, .bat
scripting?
well, should better state, want timestamp. might better answer then.
anyway:
winscp has
stat
command:stat /home/martin/index.html
outputs like:
-rwxr--r-- 0 20480 jan 5 14:09:33 2009 index.html
you can redirect output of winscp script file , parse.
or better use xml logging , parse xml log.
easier solution may make use of winscp .net assembly method
session.getfileinfo
.an additional example (to linked in method documentation) here:
https://winscp.net/eng/docs/scriptcommand_stat#net
Comments
Post a Comment