Quantcast
Channel: Microsoft Community - Using ROBOCOPY In A Batch Script To Backup Files & Folders On Windows Vista/7
Viewing all articles
Browse latest Browse all 78

Using ROBOCOPY In A Batch Script To Backup Files & Folders On Windows Vista/7

$
0
0

hi all, i don't have any experience on scripting, i tried this script, but a lot of error logged and its as following, can any body help me. 

ERROR : Robocopy ran out of memory, exiting.
ERROR : Invalid Parameter #%d : "%s"
ERROR : Invalid Job File, Line #%d :"%s"
 

 

I know this very late and that you have probably figured out the problem but perhaps this will help others.

 

Try running the script as an administrator.  The same error is received using the following command line but works fine when the command prompt is run as administrator.

 

 

robocopy "c:\System Volume Information" c:\dummy /l /xj /e /nfl /ndl /njh /r:0 /b 

 

While this can be used for any folder it is especially useful for system folders when you want to determine the size.  here is an explanation of the arguments which shows that nothing is listed, copied, or deleted. only the space information is presented.

 

c:\dummy  copy files to c:\dummy
/l List only - don't copy, timestamp or delete any files
/xj exclude junction points
/e copy subdirectories, including Empty ones.
/nfl No File List - don't log file names.
/ndl No Directory List - don't log directory names.
/njh No Job Header
/r:0 number of Retries on failed copies: default 1 million.
/b copy files in Backup mode.   (Backup mode runs Robocopy as a "Backup Operator" allowing Robocopy to override permissions settings (specifically, NTFS ACLs).)


Viewing all articles
Browse latest Browse all 78

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>