Learn how to use the robocopy command in Windows and Windows Server to copy files. Note: The /MT parameter applies to Windows Server 2008 R2 and Windows 7.
Active2 years, 11 months ago
We have a network appliance for our shared storage. We also have a fax application that dumps faxes into a single incoming directory. We want to start archiving files older than X days. Currently, there are about 318,000 files.
I set up a robocopy task that uses the following flags:
When executing, the log file gets created with header data, but nothing else gets processed. I don't see any files moving and nothing other than the header information appears in the CMD window. I let it run for over twenty minutes and saw no progress. I figured we would see many 'too new' entries added to the log as it churned away.
Any ideas why it seems to just sit there and nothing happens?
Gaff16.5k1111 gold badges5151 silver badges6666 bronze badges
WesWes
1 Answer
It started running..:
- It put the cpu between 70 and 90% for 20 minutes, i believe it was scanning every file and building a pseudo index.
- All of a sudden my CMD screen blew up with the logs of all the 'too new' files
- CPU came down to about 20% and is still running.
WesWes
Not the answer you're looking for? Browse other questions tagged windows-server-2008-r2robocopy or ask your own question.
Active3 years, 4 months ago
I'm attempting to put together a batch file that will set up a robocopy task as a service in response to user input. The basic idea being that the user will input MyRobocopyBatchFile.bat sourceFolder destinationMachine and from then on the contents of the folder mirrored with a known folder on the destinationMachine. Service will be set to start automatically so it will run at startup. For this I've taken queues from this question
The target environment for this is WindowsServer 2008 R2
My intention for how to do this is
with user input something like:
The problem that I am facing is that when the batch file gets to starting the service it gives me an error message. The same error message occurs when starting with NetStart or via the services window. The error message is:
San francisco font windows 10. Despite the error message robocopy is syncing the directories but it does not continue in monitor mode.
If any help with how to get robocopy running as a service would be greatly appreciated.
N.B. The product manager is very keen on the idea of a service.
UPDATE:Since there was no way to do this in a mechanism that would make the PM happy (SrvAny, being legacy was not an option), I ended up going with hacking together a service wrapper for RoboCopy, Its not the solution that I would have liked but it will do the job.
Community♦
KleeKlee
2 Answers
I have been able to setup such a thing a few year ago..but cannot remember how ! So i have powered back on my old VM to check.
I have used the srvany.exe utility that comes with the Windows 2003 ressource kit. Dragon ball z tenkaichi download.
This utility is not really supported on recent version of Windows but works on Windows 2008 R2.
From the previous link, note this important point :
Note however that SC is NOT a replacement for SRVANY! SC will help you create/install a service, but it will not allow you to run a regular, non-service executable as a Windows Service like srvany.exe will.
This is why you get your error message. The
Robocopy
command is executed when the service starts, but then it crashes because it is not designed to run as a Windows Service.- Download and install
rktools.exe
on your workstation, and thencopy only the needed filesrvany.exe
somewhere on your server(let's sayc:Tools
). - Then create the Windows Service for
srvany
: - Open the registry and go to:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesRobocopy-Service
- Create a new key called
Parameters
- Under that new key, create 3 new String Values :
- AppDirectory : c:windowssystem32
- Application : c:windowssystem32robocopy.exe
- AppParameters : c:source c:dest /MIR /MON:1
Finally start the service named
Robocopy-Service
and everything should work fine.Now, from here, you can still automate things in a Batch file, but you will have to use reg.exe (or regedit.exe) to manipulate Registry settings.
I've also found, in my bookmarks, the original link that helped me :https://plus.google.com/112485889729268615636/posts/bH8rSDo5ocC
krisFRkrisFR11.1k33 gold badges2222 silver badges3333 bronze badges
Old post, new answers For $49.95, this should do it. Working to run Onedrive business as a service.http://www.coretechnologies.com/products/AlwaysUp/
Here is another candidate (free) to roll-your-own:http://www.rozanski.org.uk/services
SVC.EXESynopsis. SVC.EXE is a simple Windows NT command-line program to manage NT services. Services can be listed, and individual services can be displayed, installed, modified or removed. It includes facilities to define service dependencies. The program prompts for all needed information from stdin. For most prompts, typing ? will display a help message.
WARNING - YOU ARE ADVISED TO BACK UP YOUR REGISTRY BEFORE RUNNING THIS PROGRAM. (Although I have never encountered any problems while using it.)
Please note that SVC.EXE is unrelated to the Madfinder spyware program of the same name. Click here for more information.
SRVSTART.EXE
Synopsis. SRVSTART.EXE is a Win32 executable and DLL which allows you to run commands as if they were Windows NT services. It also has some features to enhance the running of ordinary console commands (prompting for parameters etc). The DLL can be used on its own to build a service without having to write any service management code.
SRVSTART.EXE operates in one of two modes.
Lsi sas 3008 vmware driver. Did anyone find the good driver on the LSI website for WIndows 2008 R2? I'm referring to this kb: VMware KB: Windows virtual machine event log reports the error: Reset to device, DeviceRaidPort0, was issued. To download the latest LSI SAS drivers for the version of Windows you are using, visit LSI. Jul 15, 2012 I have the same driver in a W2K3 vm. I just updated the tools in this vm from version 55869 to version 69376. The LSI driver did not update. Also, there is no LSI driver visible in. 2004740, When a Windows virtual machine is powered on, the Tasks and Events tab of the virtual machine on the vSphere Client displays this warning under Events:The guest operating system is and you have one or more virtual SCSI devices installed in your virtual machine. Does not support the LSI Logic SCSI adapter that VMware ESX currently uses for its virtual SCSI devices.
SrvStart Awards
SRVSTART.EXE was originally given a top Five-Star Editor's Choice rating by ZDNet Downloads. Unfortunately, since Ziff-Davis decided to charge software developers - even freeware developers like me - a fee to be listed, my software no longer features on their sites.
RickkeeRickkee