Hello,
I use this script, but return error Remove-Item: Cannot remove item c:\files\images\images.tif The process cannot access the file.Can I help me, please? Thank you.
Then I’d start to try to simplify my code. If I’m not wrong you want to move all *.tif files to a server and rename them at the same time to *.jpg files, right?
You can move and rename files in PowerShell with Move-Item.