Powershell Script stuck in Post-Processing
Posted: December 21st, 2013, 1:54 pm
I have a simple powershell script that movies all files/folder from one point to another directory.
I call it through a batch file. These are the contents:
Call.bat
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\SB\autoProcessTV\script.ps1'"
exit
script.ps1:
ls "M:\Incoming" | % { move -Path $_.FullName -Destination "M:\Movies"}
exit
Yet, for some unknown reason, even after moving all files/folders successfully, the script keeps running and Sab wont stop.
What's going on?
I call it through a batch file. These are the contents:
Call.bat
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& 'C:\SB\autoProcessTV\script.ps1'"
exit
script.ps1:
ls "M:\Incoming" | % { move -Path $_.FullName -Destination "M:\Movies"}
exit
Yet, for some unknown reason, even after moving all files/folders successfully, the script keeps running and Sab wont stop.
What's going on?