Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

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 added by Deleted user
Date Posted: 2014/10/18
Roshan Firozkhan
by 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
by 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   

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
by Muhammad Anzar , DevOps/DevSecOps Architect , Confidential

Use xcopy and run it on scheduler.

Jehad Abu Sultan
by 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
by 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

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.