Hi guys!
I've got 2 pc: one have Powershell V3, the other one have Powershell V2.
I've got a recursive function (Function A{... A ...}); with PS v3 there aren't problems , with PS v2 i've got a maximum call depth error (please look this : http://social.technet.microsoft.com/Forums/en-US/904d30e2-6f68-40d6-9d6b-2082fa042362/powershell-the-pipeline-failed-due-to-call-depth-overflow?forum=winserverpowershell).
Can I "Split" this function?
An idea:
$S=$null
$total=#all folders
while(($Total-$S) -ne $null){
While(!(error)){
function A
$S=Save the job done
}
$total -= $S
}
Thanks!
A