| 1. |
Solve : Xcopy Batch File? |
|
Answer» Hi,
I'm wondering if this COULD be a limitation of xcopy itself. In another forum this is what someone said: "xcopy cannot copy open/locked files and an admin doesn't own all the file system in Windows now." What doesn't make sense is that I do have access to these files, but xcopy doesn't for some reason. Is there any way to run a batch file in some kind of admin mode? As another option I would be happy to buy a program to do this for me. All I'm looking for is a program that copies changed files to a flash drive and then resets the archive bit on the source file. I would like to have the files be readable on any PC, so compression or proprietary formats wouldn't work. An image or clone program wouldn't be the answer either. Do you know of any programs that could do this? Thanks.Quote from: DigitalDawn on January 15, 2013, 04:04:32 AM Is there any way to run a batch file in some kind of admin mode? Right click the batch file and run it as admin/with elevated permissions. See if that does it as you expect it should.No that didn't work either. :-( The essence of the problem has to do with ownership of files and folders. Windows can have multiple users on a machine and the expectation is that they can each have files which other users cannot view or use. This user system LEADS to admin users and other classes who can use takeown.exe and cacls.exe to change permissions on the file system and give the ability to access certain system and user folders. If you have no expectation of security on your computer then you can give permission to each file and folder to "Everyone" which is a user privilege that is very low in the security hierarchy. Windows isn't designed to allow this - some folders will revert to system access repeatedly - and this will allow malware to gain access easily too. Another way around this is to create a folder which you use to save every personal file into, in a category of sub folders, and then backup this 'master' folder which contains all your files. You might also like to investigate XXclone which can backup the entire hard drive to a USB device (or internal drive) in file mode - and each backup only copies the changed/new files and gives you a mirror and bootable backup. The benefit is that after the initial backup then each subsequent backup is very swift, of the entire system. You can access every file in the backup the same way you can on your master drive. The backup hard drive only needs to be as large as the files, so you can backup to a smaller HDD than the primary c: drive. Robocopy is a command line tool that is similar to xcopy but it also skips existing files in the backup, so is swift. It has mirror backup capability too. Similar to xcopy, it cannot copy files and folders that your user does not have permissions to access. I hope that illuminates the issue somewhat...Thanks for your detailed response. I checked out XXClone and it really isn't going to work because it requires a full-clone backup initially, which I can't do with a flash drive. Same thing for Acronis and other similar programs. |
|