Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is the command-line that you use to make a copy to folders and there contents , how you make this command work every day automatically ?

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2014/10/18
Roshan Firozkhan
par Roshan Firozkhan , IT System Administrator , Emirates Driving Institute

create a batch file with 

xcopy D:\\FOLDER1\\*.* \\\\192.168.0.5\\d$\\Folder2\\*.* /s /d /f /y

 

and create a schedule task 

Ahmad Ghieth
par Ahmad Ghieth , Technical Manager , Ambience Jordanian Lighting

you can use xcopy /e and this will copy full folders even the empty one.

 

as for automation, you should use Task scheduler from windows

 

hope this info was enough :-D   

Utilisateur supprimé
par Utilisateur supprimé

Robocopy command can be used for copying purpose. Add it to Batch File and then you can create a daily job in Tasks.

Muhammad Anzar
par Muhammad Anzar , DevOps/DevSecOps Architect , Confidential

Use xcopy and run it on scheduler.

Jehad Abu Sultan
par Jehad Abu Sultan , Senior Security Engineer , Microsoft

use this command to copy the NTFS permissions on the folder 

robocopy \\\\Source \\\\Destination /COPYALL /E /XO /ZB /R:3 /LOG+:EDrive.txt /TEE /PURGE

Hossam Wael Elmosallamy
par Hossam Wael Elmosallamy , Microsoft Systems Engineer , Najran University

You can use PowerShell Command: Copy-Item :

For Example:

Copy-Item c:\\scripts\\test.txt c:\\test  

then use Windows Scheduled Tasks

Highlight/Right Click Select copy on the folder that your Copying/ Ctrl+C  then paste it to where you want it to copy,,

 That's What I do,

 

More Questions Like This