ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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
تم إضافة السؤال من قبل مستخدم محذوف‎
تاريخ النشر: 2014/10/18
Roshan Firozkhan
من قبل 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
من قبل 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
من قبل Muhammad Anzar , DevOps/DevSecOps Architect , Confidential

Use xcopy and run it on scheduler.

Jehad Abu Sultan
من قبل 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
من قبل 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,

 

المزيد من الأسئلة المماثلة