4sysops - The online community for SysAdmins and DevOps
This topic is resolved
This topic contains 4 replies, has 3 voices, and was last updated by Chris 3 months, 1 week ago.
Need help using Get-Childitem and I need it to create a new folder and then copy the contents of the D drive to that folder. For some reason it will only create the folder without copying over the contents of D:\
This is what is looks like now.
Please use below code
Users who have liked this topic:
If you really want to move files, you might consider working with Move-Item instead of Copy-Item.
Swapnil — I’ll try that.
Michael — I don’t want the files to be deleted from the CD
Swapnil, that worked. Thanks.
You must be logged in to reply to this topic.
Please ask IT administration questions in the forums. Any other messages are welcome.
or Create an account