Powershell - option batch continue

Advertisement

Stephane Tinseau
Joined:
Posts:
7
Location:
Paris

Powershell - option batch continue

Hi,

In my script, (powershell+.net), each time an error is triggered, like access deny, the directories synchronization is stopped.
I have remove the '$transferResult.Check()' line but it still stop.
How i can configure my script to NOT stop after any errors and continue to the rest of files.

Thanks
regards
Stephane

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,441
Location:
Prague, Czechia

Re: Powershell - option batch continue

You cannot do that. You have to explicitly exclude inaccessible directories from the synchronization.

Reply with quote

Advertisement

You can post new topics in this forum