New
#150
I haven't tried that, because I don't have other bat file... This is the first bat I'm trying to make.
I haven't tried that, because I don't have other bat file... This is the first bat I'm trying to make.
Make one to test. It could be as simple as this:
ECHO This is a test
PAUSE
Do you have UAC turned on, or disabled? (I'm assuming your in Windows 7?)
yes, I'm running win 7 pro, and I have the UAC disabled.
Try this: enable UAC, reboot, and then try running that batch file as Administrator (via right-click context menu).
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?
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!
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.
Yes, that is probably true, but that doesn't change the fact that UAC is quite a big pain in the ......