Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

File Locked when executing Remove-Item

$
0
0

I created a script that creates an email attachment from a .csv file. At the end of the script I would like to delete the file but i am getting the following error. How can I release the lock on the file without closing the powershell window?


Viewing all articles
Browse latest Browse all 2562

Trending Articles