Tuesday, October 14, 2008

Sample Community Service Hours Letters

recurse remove-item better than delete

When we use the script to make backups of virtual machines:

http://circulotito.blogspot.com/2008/06/hyper-v-virtual-machine-backup.html

can automate that erased the oldest copies not to run out of space. We can use a script to execute a scheduled task.
The fact is that if we use the delete function () the result of a Get-ChildItem not delete the old copies, but also fails.
some research we realized that if the board has other directories warns us of them and therefore not deleted.
To solve this we use the function Remove-Item-recurse $ rutaCompletaDirBorrar shows no notice and if it works with a scheduled task.

Related articles:
http://circulotito.blogspot.com/2008/06/hyper-v-virtual-machine-backup.html
http://www.microsoft.com/technet/ # ENG scriptcenter/resources/begin/ss0707.mspx

0 comments:

Post a Comment