Topic "Extracting Time stamp of remote files"

Author Message
Vinod

Guest


I use the WINSCP 5.5.6 (Build 4746). How do i extract the time stamp (Changed) on the remote computer for 20-30 specific files (file names don't change).

I need to extract the time stamp to know if the files have been updated. Instead of connecting manually and looking for each and every file, i would like to do in automatically.

I am new to this subject but i did look around but couldn't find any material that would be helpful. Thanks in advance
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
That's very vague question. Where do you want to "extract" the timestamp to? What are you going to do with the timestamp?

Did you consider using synchronization?
See http://winscp.net/eng/docs/guide_automation

Or downloading recent files only?
http://winscp.net/eng/docs/faq_script_modified_files
http://winscp.net/eng/docs/script_download_most_recent_file ("Alternatives" section)
Vinod

Guest


prikryl wrote:
That's very vague question. Where do you want to "extract" the timestamp to? What are you going to do with the timestamp?

Did you consider using synchronization?
See http://winscp.net/eng/docs/guide_automation

Or downloading recent files only?
http://winscp.net/eng/docs/faq_script_modified_files
http://winscp.net/eng/docs/script_download_most_recent_file ("Alternatives" section)



Project requires owners to update the files each week. So, based on the time stamp of each file (have around 20 files whose names are static) i will then check to see if the files have been updated.

Basically i would like to connect to WINSCP and pull the timestamps with a click on button.

Hope this helps
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
So you want only to check that the remote file timestamps have changed (or that they all are newer than a certain time)? You do not need to download them?
_________________
Martin Prikryl
Guest




prikryl wrote:
So you want only to check that the remote file timestamps have changed (or that they all are newer than a certain time)? You do not need to download them?


I don't need to download the files. I just need to download the timestamps of each file.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You can use WinSCP .NET assembly from a PowerShell script.
See http://winscp.net/eng/docs/library_session_listdirectory#powershell
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License