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: Protected Folders Batch File Backup

So I am trying to create a batch file that will copy certain folders from the My Documents and Program Files 86 folders. Of course these are protected. I can make a batch file and use robocopy to copy other files just fine. How can I set admin privileges? Or whatever it is I need to do to make it work? I am using group policy editor to run the bat file on shutdown.

Example:

Robocopy C:\Folder\ D:\Folder\

that works fine...but when I try copying files out of Program Files x86 or My Documents the batch fails

But why fails? What error message is thrown?
First of all, try to run the bat manually by double clicking, and see if it works there. Then you can try to automate, but it's easier to go one step at a time.

About permissions, Program Files has read access for every user, and My Documents has read-write for you and nothing for others. So running manually you should be able to do it, provided you have write permissions on the target folder.

Maybe it's a problem caused by running at shutdown. Check under what user context is running the bat in that condition.

"Protected files happen when you copy content through a share or download it through Internet explorer.
The OS adds a zone identifier to the file. Users can still access the file, but copying them through command line tools is no longer possible. I have no idea what the use of this great feature is. But I'm looking for a sollution to it"

Sounds like this is happening to me. It seems that I cannot simply make a batch file to copy anything out of protected folders

Protected Folders Batch File Backup

Window Batch file to delete folders/subfolders that contain filesI have a root folder called "Names"..It has subfolders ,these subfolders contains files. I will be giving the names of subfolders to be deleted in text file Ex..
John
Tom
Rambo.
I will be reading the folder names from text file & delete only those folders with files inside the folder also ....

General Discussion

[Help] Batch File move every 15.000 files to another foldersHi guys
I'm new here, please help
I have about 2 million email files that i want to convert into mbox files.
but the tool i used only can convert every 15.000 files.
so i need a batch file that can move this 2 million files into another folder (15.000 files each folder)
and the folder name...

General Discussion

a simple batch file for copy files and foldersI want to write a batch file that do this for me:
- makes a directory with the "yy.mm.dd.hh.mm" as the directory name,
- copies files and folders from a TEST directory to above destination,
- copies only new (or modified) files from the TEST directory to a separate folder.
Any Idea?

General Discussion

Batch file to de-fragment, backup, then shutdown?Hey guys,
Is there a way I can create a batch file so de-fragment my hard drive, once that has finished, backup to an external hard drive, and then one that has finished shut down the PC?
Thanks,
JPiiONEFOURONE

General Discussion

Sharing folders with homegroup, using a batch file?Hello,
Due to some drives being portable, windows unshares them all the time on reboot, so I'm wondering if there is a command line option (batch command) to share folders with a homegroup.
I already did some checking, and found that when you share a folder, it starts the process...