using Robocopy with windows XP professional

By solshakdwn ·
key things to mention;
Robocopy has already been installed on the workstation but I can not get the command to work.
I am not an admin user on the system..Does this matter?

Here is my sample script and error message received after attempting to run it on the command prompt;

SET _source=\\E:\Backups Backups\backup.bkf
SET _dest=\\Y:\backup area Backups\PC\Backups
:: /COPYALL ::COPY ALL file info
:: /B :: copy files in Backup mode
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree

SET _options=/R:0 /W:0 /LOG:Mylogfile.txt /NFL /NDL
:: /R:n :: number of Retries
:: /LOG :: Output log file
:: /NFL :: No file logging
:: /NDL :: No dir logging

ROBOCOPY %_source% %_dest% %_what% %_options%
'ROBOCOPY' is not recognized as an internal or external command,
operable program or batch file.

I used a sample script I downloaded and made some changes. I left the comments in there just for understanding.

What am I doing wrong?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

What happens if you just type robocopy?

by robo_dev In reply to using Robocopy with windo ...

Is the robocopy program in the same directory?

if not, either make sure it's in the path, or call the program explicitly, e.g.

Remember that spaces are not allowed in filenames in batch files, so you must use quotes if the filename or folder name as spaces.

Collapse -

Robocopy question

by solshakdwn In reply to What happens if you just ...

Thank you. I missed the quotes. That was one of my errors. Now I have another that I think I can get help from the usage help in robocopy. If I get stuck I will be back here but otherwise thanks for the help.

Collapse -

Additional Help

by solshakdwn In reply to Robocopy question

I am having trouble identifying my mistake in this script. Can you help?


ERROR : Invalid Parameter #3 : "E:\Backups Area\RobocopyTest" /COPYALL /B /SE
C /MIR /R:0 /W:0 /LOG+:\Mylogfile.txt /NFL /NDL /TEE"




SET _source="E:\Backups area\Backups\"
SET _destination="E:\Backups area\RobocopyTest\"
SET _file=*.bkf
SET _what= /MIR /SEC
SET _options=/R:0 /W:0 /LOG+:\Mylogfile.txt /NFL /NDL /TEE


"c:\program files\Robocopy\ROBOCOPY.exe" %_source% %_destination% %_file% %_what% %_options%

What I'm I doing wrong?

Collapse -

Solution found

by solshakdwn In reply to Additional Help

I was able to resolve the issue. The problem was the "\" at the end of my source and destination syntax line. I also missed the quotes in the file line.
I am not a scripting pro as you can tell and these are usually the errors I make most...I just don't see them. Advice to anyone like me..NOTE these little syntax mistakes they can give you a major headache. Hopefully this helps others.

Related Discussions

Related Forums