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:

  1. 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.

  2. 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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -