Hi guys!
$Location= "C:\Test\Script" $Scripts=@("Temp.ps1","Empty.ps1","Report.ps1") foreach($Act in $Scripts){ $Dest=$Location,$Act -join('\') Invoke-Expression $Dest }
I've wrote this script to execute all the three other scripts possibly in the indicated order.
Instead oflaunch thesecond scripton completion ofthe first, this script launch immediately all the scripts.
So, if a folder F1 has only the file A.tmp, thefirst script would removethe temporary file,the secondwould eliminate the folder (because at this pointremains empty), and finally executed thethird script...
How can i do this?Thanks
A