Closed AndrewRathbun closed 2 years ago
Take a look into leveraging the -Filter or -Include for those Copy-Item lines in the Move-EZToolsNet6 function
-Filter
-Include
For instance:
& Copy-Item -Path $kapeModulesBin\ZimmermanTools\net6\MFTECmd.dll -Destination $kapeModulesBin\ -Recurse -Force & Copy-Item -Path $kapeModulesBin\ZimmermanTools\net6\MFTECmd.exe -Destination $kapeModulesBin\ -Recurse -Force & Copy-Item -Path $kapeModulesBin\ZimmermanTools\net6\MFTECmd.runtimeconfig.json -Destination $kapeModulesBin\ -Recurse -Force
becomes:
& Copy-Item -Path $kapeModulesBin\ZimmermanTools\net6\ -Filter MFTECmd* -Destination $kapeModulesBin\ -Recurse -Force
bottom example's syntax has not been "fact-checked" so it may be wrong, but the general idea is communicated
Take a look into leveraging the
-Filter
or-Include
for those Copy-Item lines in the Move-EZToolsNet6 functionFor instance:
becomes:
bottom example's syntax has not been "fact-checked" so it may be wrong, but the general idea is communicated