r/PowerShell • u/DataDuude • Nov 27 '20
Question A PowerShell script that can copy one folder (with 700 folders, and 50,000 files) to another folder - and produce a detailed timestamped log of the copying process?
Hi,
Is there a PowerShell script that can copy one folder (with 700 folders, and 50,000 files) to another folder - and produce a detailed timestamped log of the copying process?
Can anyone provide a script that can do this please? :)
2
1
1
u/dasookwat Nov 27 '20
this is where robocopy comes in. it's anot a powershell toopl, but a commandline tool, and you can still call it from a ps script if you want.
1
u/ExeqZ Nov 27 '20
Take totalcommander. With that you dont have Problem with Rights or long path names.
2
1
u/Super_Art_23 Nov 28 '20
Does the number of files and or folders match up? Use Beyond Compare like I mentioned in the other post. It will tell you exactly where your differences are.
50
u/krzydoug Nov 27 '20
Robocopy