How to Get dateCreated of File ?

Advertisement

vpnjain1991
Joined:
Posts:
1

How to Get dateCreated of File ?

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 ?

# Connect
$session.Open($sessionOptions)
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 ????
}

Reply with quote E-mail

Advertisement

Advertisement

You can post new topics in this forum