Basically nothing is working for me. In the help file it shows copy-file as the cmdlet to use but that doesn’t work. I get “The term ‘Copy-File’ is not recognized as the name of a cmdlet, function, script file, or operable program.”
Copy-File -Path “$dirSupportFiles\tax.exe” -Destination “c:\temp\tax.exe”
I’ve tried what someone else said to do in another thread and that doesn’t work. Well let me change that, if I run selection inside the script it works, but when I run using the deployapplication.exe, it fails.
$filecopypath=dir .\SupportFiles\tax.exe
Copy-Item $filecopypath -Destination “c:\temp\tax.exe”
I’m basically trying to copy 3 executables from the supportfiles folder to C:\temp and can’t get this to copy when running the deploy-application.exe