Created
September 26, 2023 20:27
-
-
Save HiteaFR/c4cd6a99e59b792bfc12cad842366d10 to your computer and use it in GitHub Desktop.
Copier des fichiers avec Robocopy et Powershell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
net use * /delete /yes | |
net use p: \\COMPUTER_NAME\d$\... /user:USER PASSWORD | |
robocopy "P:" "DEST" /MIR /NDL /NP /FFT /Z /R:3 /W:10 /LOG+:C:\Log.txt | |
net use * /delete /yes | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment