PS: File/Folder Copying in PowerShell
Many times we require to copy a few bytes of single file to a few GBs of DB files on the other. Here are basic PS cmdlets that help you script/automate the tasks safely in PS. Important Notes on Copy Behavior: Copy process merges the source files with destination path You need to use forceful copy if the destination folder already exists If destination folder doesn’t exist, creates destination folder with files under sources folder instead of copying the whole folder as is If destination folder exists, copy process copies the whole source folder as subfolder in the destination folder […]
Read more