Posted: 2017-02-10 09:24
Hi, I'm trying to filter files created today but I didn't find any method in RemoteFileInfo to et date created ?
Any idea how can I get date created of file ?
Write-Host "Session Connected"
# Download files
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$directory = $session.ListDirectory("/")
foreach ($fileInfo in $directory.Files)
// How to get date created of file ????
Location: Prague, Czechia
WinSCP does not expose the creation timestamp.
But it does expose the last modification timestamp:
You can post new topics in this forum
And it's free!