You can do this all in PowerShell very easily. This relies on the the Toolkit functions and logs everything for you:
Dan
# Create folder if it doesn't exist
If (!(Test-Path -Path "$envProgramFilesX86\Testing" -ErrorAction SilentlyContinue )) { New-Item "$envProgramFilesX86\Testing") -Type Directory -ErrorAction SilentlyContinue | Out-Null }
# Copy each file in the Files folder
ForEach ($file in (Get-ChildItem $dirFiles)) {
Copy-File -Path ($file.FullName) -Destination "$envProgramFilesX86\Testing\($file.Name)"
}
# Register DLL
Register-DLL "$envProgramFilesX86\Testing\MyFile.DLL"
Should work :)Dan