Craven Morehead Posted December 30, 2004 Posted December 30, 2004 Ok I just went through the unattended xp install guide (which is awesome and I thank everyone that has contributed to it.) and I want to make a batch file that will copy the my documents folder and also some specific files to my server. I need you guys to point me in the right direction by answering the following questions.1. What commands do I need to do this or please link me to a site that will show me.2. How can I make this batch file run every say 24 hours.3. If I can't make the batch file run every 24 hours what command do I use to repeat the copy operation every 24 hours and then how do I hide the window.Thanks for your help.
Radimus Posted December 30, 2004 Posted December 30, 2004 use xcopy command, something like:xcopy sourcefolder\*.* destinationfolder /d /e /y /v /c /r make it into a batch file and use taskscheduler
blackbull Posted December 30, 2004 Posted December 30, 2004 The batch file should be somehow like this:@echo offcd\cd docume~1net use q: \\name_of_pc\share_file_name /yxcopy *.* q:\ /s /d /y/s -> subdirectories/d -> only take new files/y -> without confirmationTime and date created...date /t > datetime.txt time /t >> datetime.txt clstype datetime.txtpausecopy datetime.txt c:net use q: /dexitNow to run every 24hours u must edit scheduler and put the batch file in it.If u write exactly what u want to copy i can make you the batch file
Martin Zugec Posted December 30, 2004 Posted December 30, 2004 If U need it for backup, use robocopy from RK... If it is for migration, I would recommend U using User State Migration Tool from Microsoft, it is really great tool!But it looks like roboform and mirror option will be best for U. Could U write some more informations, please? For scheduling U should use command schtasks or GUI for creating job...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now