for me, it is building an array of options for robocopy & then using that as the argument list for the util. it apparently works very much like that for other arguments. something like this ...
$RC_Params = @(
$Source
$Destination
$FileSpec
# put your current options below
"/Log:$FullLogFileName"
'/E'
'/TEE'
)
robocopy $RC_Params
it aint what i consider splatting, but it fits well enuf & is documented as such ... but i can't find the silly docs for it right now. [blush]
3
u/Lee_Dailey [grin] Apr 05 '19
howdy Szeraax,
for me, it is building an array of options for robocopy & then using that as the argument list for the util. it apparently works very much like that for other arguments. something like this ...
it aint what i consider splatting, but it fits well enuf & is documented as such ... but i can't find the silly docs for it right now. [blush]
take care,
lee