ROBOCOPY - Create Backup Script

Page 16 of 32 FirstFirst ... 6141516171826 ... LastLast

  1. Posts : 8
    Windows 7 professional 64-bit
       #150

    I haven't tried that, because I don't have other bat file... This is the first bat I'm trying to make.
      My Computer


  2. Posts : 26
    Windows 10 Home, 64-bit
       #151

    Make one to test. It could be as simple as this:

    ECHO This is a test
    PAUSE
      My Computer


  3. Posts : 8
    Windows 7 professional 64-bit
       #152

    Ok that one worked just fine!
      My Computer


  4. Posts : 26
    Windows 10 Home, 64-bit
       #153

    Do you have UAC turned on, or disabled? (I'm assuming your in Windows 7?)
      My Computer


  5. Posts : 8
    Windows 7 professional 64-bit
       #154

    yes, I'm running win 7 pro, and I have the UAC disabled.
      My Computer


  6. Posts : 26
    Windows 10 Home, 64-bit
       #155

    Try this: enable UAC, reboot, and then try running that batch file as Administrator (via right-click context menu).
      My Computer


  7. Posts : 8
    Windows 7 professional 64-bit
       #156

    Well, actually, something has changed... I enabled the UAC, run the app as admin, and it did run it right. Then turned the UAC off again, run as admin, worked, but if I run it without admin rights, it doesn’t work. So the solution is definitely to run it as an administrator. But now I have another problem... I tried to set the file’s privilege level to run as admin always, but I can’t... any suggestions?

    Also, I scheduled a task to run the app every day. So I guess it would be a problem, if a can’t set the privilege level, right?
      My Computer


  8. Posts : 8
    Windows 7 professional 64-bit
       #157

    I have solved that problem too. As I’m running the app through Task Scheduler, I can assign that task the highest priority, so problem solved!

    Thanks acornada for your effort and help!
      My Computer


  9. Posts : 26
    Windows 10 Home, 64-bit
       #158

    Task Scheduler is one possible solution I would have suggested, but there are other ways too.

    As you discovered, the robocopy batch file needs to be run as Admin, and I suspected that you had UAC disabled (which is really not a good idea). Some apps won't run as Admin properly if UAC is disabled, which is why I asked you to enable and test.

    You're welcome.
      My Computer


  10. Posts : 8
    Windows 7 professional 64-bit
       #159

    Yes, that is probably true, but that doesn't change the fact that UAC is quite a big pain in the ......
      My Computer


 
Page 16 of 32 FirstFirst ... 6141516171826 ... LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:34.
Find Us