Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: ROBOCOPY - Create Backup Script

07 Nov 2012   #150
Kornjace

Windows 7 professional 64-bit
 
 

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


My System SpecsSystem Spec
.
07 Nov 2012   #151
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

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

ECHO This is a test
PAUSE
My System SpecsSystem Spec
07 Nov 2012   #152
Kornjace

Windows 7 professional 64-bit
 
 

Ok that one worked just fine!
My System SpecsSystem Spec
07 Nov 2012   #153
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

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

07 Nov 2012   #154
Kornjace

Windows 7 professional 64-bit
 
 

yes, I'm running win 7 pro, and I have the UAC disabled.
My System SpecsSystem Spec
07 Nov 2012   #155
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

Try this: enable UAC, reboot, and then try running that batch file as Administrator (via right-click context menu).
My System SpecsSystem Spec
07 Nov 2012   #156
Kornjace

Windows 7 professional 64-bit
 
 

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 System SpecsSystem Spec
07 Nov 2012   #157
Kornjace

Windows 7 professional 64-bit
 
 

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 System SpecsSystem Spec
07 Nov 2012   #158
acornada

Windows 7 Home Premium SP-1, 64-bit
 
 

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 System SpecsSystem Spec
07 Nov 2012   #159
Kornjace

Windows 7 professional 64-bit
 
 

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

 ROBOCOPY - Create Backup Script




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




Similar help and support threads
Windows 7 Tutorial Category
robocopy script is not working through Scheduler
Dear All, My batch file of robocopy is working fine. But when I tried to run it through task scheduler, none of the files transfer to the target location. @echo off echo +-----------------------------------------+ echo Database Export Utility for server ...
General Discussion
Robocopy Backup - ERROR 5 (0x00000005)
Hi, I'm wondering if anyone might be able to shed some light on why I am getting the following such errors when running a robocopy batch file (as administrator) which cause the backup script to stall (- albeit temporarily): I am using the following backup command: robocopy "%srcPath%\My...
Backup and Restore
How 2 create a script/BAT or something that changes my desktop image?
Okay so I just got this program called Transparent Screen Lock and you can run files when the program starts/locks and closes/unlocks. What I would like to do is create a script or something that changes my desktop background to an image when I click "lock" and another script to change the desktop...
Customization
Robocopy backup for personal folders
I have created a batch file for copying my Documents folder to an external hard drive: The log file shows that it is backing up C:\users\USERNAME\documents\My Music and C:\users\USERNAME\documents\My Pictures. That's fine, because I want those backed up anyway, but when I go to...
Backup and Restore
I Need Help To Create REG. Script With Admin. Priv. For Reg. Editor?
Hello. I have a technical question/issue I wish to ask. I hope someone can help me. I am looking help for someone to modify or rewrite for me a simple system registry script for my context menu that allows or forces to "run as administrator" privileges automatically when I click on the...
Customization
Anyone use robocopy to backup?
Evening all, Just curious to know if anyone uses the built in utility to backup software on your machine, im trying to backup my itunes folder to an external HD but having a few issues to get this to work properly! I also use sync toy for backing up but just really want to know what everyone...
Backup and Restore


Our Sites

Site Links

About Us

Find 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 11:25.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App