Windows 10: Robocopy syntax doesn't work in my batch file anymore

Discus and support Robocopy syntax doesn't work in my batch file anymore in Windows 10 Support to solve the problem; It seems that the destination file permissions cannot be set by your account. 2. Add the /B switch (to run in Backup mode) Thank you for your reply.... Discussion in 'Windows 10 Support' started by phrab, Mar 22, 2018.

  1. phrab Win User

    Robocopy syntax doesn't work in my batch file anymore


    Thank you for your reply. When I did this manually, I got this message:
    ERROR : You do not have the Backup and Restore Files user rights.***** You need these to perform Backup copies (/B or /ZB).ERROR : Robocopy ran out of memory, exiting.ERROR : Invalid Parameter #%d : "%s"ERROR : Invalid Job File, Line #%d :"%s" Started : %s %s

    However, the Task Scheduler, which is checked to run with highest permissions, worked fine. When I ran it directly, I got the error message. If I run it as an administrator, it works fine. I guess I didn't give myself enough permissions as a user/administrator.
     
    phrab, Mar 30, 2018
    #31
  2. ddelo Win User

    The ERROR : You do not have the Backup and Restore Files user rights, is because your didn't run the command, with the /B switch, as ADMINISTRATOR.

    As a general rule, to avoid problems, RoboCopy commands should always be run as ADMIN. So either run the batch file as ADMIN or run the command from an elevated (Run As Admin) command prompt.
     
    ddelo, Mar 31, 2018
    #32
  3. phrab Win User
    Thank you. I have to remember that. Sometimes, I just click the shortcut, which doesn't run as administrator, rather than right click it & choose that option.

    In Windows XP, I can't run the batch file as administrator because WinXP requires a password to do that & I chose not to have a password. Oh, well.
     
    phrab, Mar 31, 2018
    #33
  4. ddelo Win User

    Robocopy syntax doesn't work in my batch file anymore

    XP is out of my league, as far as RoboCopy is concerned. Although I used them for their entire life span and more (never got into Vista), I was not using RoboCopy back then. I started it with Win7....
     
    ddelo, Apr 4, 2018
    #34
Thema:

Robocopy syntax doesn't work in my batch file anymore

Loading...
  1. Robocopy syntax doesn't work in my batch file anymore - Similar Threads - Robocopy syntax doesn't

  2. Simple batch file gets syntax error

    in Windows 10 Gaming
    Simple batch file gets syntax error: My one-line batch file gets the error message :The syntax of the command is incorrect. I'm pretty sure this is not so.As in so many many other cases, Microsoft gives a generic error message that has no apparent connection to what the user is trying to do. As a result, we...
  3. Simple batch file gets syntax error

    in Windows 10 Software and Apps
    Simple batch file gets syntax error: My one-line batch file gets the error message :The syntax of the command is incorrect. I'm pretty sure this is not so.As in so many many other cases, Microsoft gives a generic error message that has no apparent connection to what the user is trying to do. As a result, we...
  4. Can Robocopy copy in batches of files?

    in Windows 10 Gaming
    Can Robocopy copy in batches of files?: Evening, I'm just after a bit of help, I have a folder on my PC which has a load of files from my Nikon Camera - for my current example 1700 at around 42GB, I usually copy these to an external SDD but I'm guessing due to the SSD the speed tends to drop off so I start around...
  5. Can Robocopy copy in batches of files?

    in Windows 10 Software and Apps
    Can Robocopy copy in batches of files?: Evening, I'm just after a bit of help, I have a folder on my PC which has a load of files from my Nikon Camera - for my current example 1700 at around 42GB, I usually copy these to an external SDD but I'm guessing due to the SSD the speed tends to drop off so I start around...
  6. Can Robocopy copy in batches of files?

    in Windows 10 Network and Sharing
    Can Robocopy copy in batches of files?: Evening, I'm just after a bit of help, I have a folder on my PC which has a load of files from my Nikon Camera - for my current example 1700 at around 42GB, I usually copy these to an external SDD but I'm guessing due to the SSD the speed tends to drop off so I start around...
  7. HOW: Robocopy command to a batch-file

    in Windows 10 Network and Sharing
    HOW: Robocopy command to a batch-file: This working fine in a Command Prompt: robocopy "C:\¤Head Folder\Folder 01\Old folder" "C:\¤Head Folder\Folder 01\New folder" /mov /minage:930 How do I make a Batch file .BAT with that RoboCopy command...
  8. Robocopy Syntax required

    in Windows 10 Installation and Upgrade
    Robocopy Syntax required: Hi I have a shortcut with the following script C:\Windows\SysWOW64\Robocopy.exe /MIR "C:\Users\Jandd\AppData\Local\Google\Chrome\User Data\Default" J:\CHROME_BOOKMARKS_BACKUP /SEC Bookmark* Under Windows 7 this script copied the two Bookmarks files and put them in my...
  9. Robocopy Syntax Required

    in Windows 10 Software and Apps
    Robocopy Syntax Required: Hi I have a Robocopy script for backing up my files. It always worked ok under Windows 7 but since I upgraded to Windows 10 it is now treating every file as "modified" so it takes a lot longer to backup my files. My script is: C:\Windows\SysWOW64\Robocopy.exe I:\DATA...
  10. Wildcards in Robocopy | Batch file very very basics

    in Windows 10 Support
    Wildcards in Robocopy | Batch file very very basics: I have folders that contain files and subfolders. The files have a limited set of extensions. What I seek to do is to robocopy /mir the files separately from the subfolders. I have been trying to review wildcard basics. I am not finding any ways to combine them that suits...