I want to move a folder containing 50GB of files to a Shared folder using C#. Iterating through directories and copying each files using FileInfo CopyTo method doesn't seems to be best option for me. I tried XCOPY Windows Command to copy. But I personally don't like the idea to call an external application which Microsoft may withdraw any time in future. My third option is to use Windows PowerShell cmdlet Move-Item.
Move-Item -Path D:\Files\Server-01 -Destination \\NAS-Storage-01\Backups\Server-01\ServerFiles
Can anybody tell me the pros and cons using this method using C# ?