PowerShell Continuously printing directories compared

Advertisement

zortext
Joined:
Posts:
2
Location:
Istanbul

PowerShell Continuously printing directories compared

While using Winscp script for synchronization, command window continuously prints what is being compared like:
Comparing...
Local 'D:\backup\dir1' <= Remote '/home/user/dir1'
Local 'D:\backup\dir2' <= Remote '/home/user/dir2'
....

But in powershell scripting it prints comparing... and than prints last directory compared.

I tried to output as follows but did not help
function OutputDataReceived{
  param($e)
  Write-Host $e
}
$session.add_OutputDataReceived( { OutputDataReceived($_) } )

Is it possible to monitor what is being synchronized continuously?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
34,115
Location:
Prague, Czechia

Re: PowerShell Continuously printing directories compared

No, this is not supported atm.

Reply with quote

Advertisement

You can post new topics in this forum