Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista file management

Robocopy broken?

Closed Thread
 
Thread Tools Display Modes
Old 03-12-2007   #1 (permalink)
Daniel Erkan
Guest


 

Robocopy broken?

I'd like to use robocopy for some automated file copying.
Everything it is supposed to do, is copy my users folder using /MIR.
However, everytime it goes crazy with the hidden, localized AppData
shortcut folders and goes in a loop, creating infinte of these folders,
creating a structure like /appdata/appdata/appdata/appdata/appdata and
so on.... until it gets kicked by the filesystem.
I could offer a (German) log, if that's a help to anybody.

Any ideas on how to fix that?

Thanks!
Old 03-12-2007   #2 (permalink)
Jimmy Brush
Guest


 

Re: Robocopy broken?

Hello,

It sounds like you may have changed the security on one of the application
compatability junctions, such as the Application Data junction, and removed
the "Deny: Everyone" permission from it.

The solution would be to put the deny permission back on the junction.


--
- JB
Microsoft MVP - Windows Shell/User

Windows Vista Support Faq
http://www.jimmah.com/vista/

Old 03-13-2007   #3 (permalink)
Daniel Erkan
Guest


 

Re: Robocopy broken?

Jimmy Brush schrieb:
> Hello,
>
> It sounds like you may have changed the security on one of the
> application compatability junctions, such as the Application Data
> junction, and removed the "Deny: Everyone" permission from it.
>
> The solution would be to put the deny permission back on the junction.


The security has not been altered. For the sake of testing, I even tried
what would happen, if I even gave it permission, but either way, the
same thing happens.
Now I'm even in the hassle, that I can't even remove the folders it has
created. When I try to remove them, it just says the folder is too long.
I can't delete a single file and I can't even rename them in order to
shorten the length.
Argh.. now I have broken folders as well...
Old 03-13-2007   #4 (permalink)
Benny
Guest


 

RE: Robocopy broken?

Daniel,

I just read this in another thread...hope it helps.

Just because I spent some time figuring this one out:

When copying user accounts to another place in Windows Vista, be sure to
exclute JUNCTIONS. There is a junction in '\Users\...\AppData\Local' named
'Application Data' which points to its parent folder, thus effectively
creating a LOOP.

Robocopy if used without /xj follows this junction and copies its contents
and follows this junction and copies its contents and follows this junction
.....

You effectively get a very long directory tree, which you cannot see if you
also copied permissions, because this folder has security permissions set to
deny folder listing and traversal for everybody.

To remove the mess, you have to
1. remove the "Everybody Deny" security restraint and apply this to all
subfolders
2. rename 15-20 "Application Data" folders to "a", because the names gets
too long for explorer
3. delete the folders

Perhaps someone might find this helpful.

BTW, whoever had this idea to create a junction to the parent folder should
get a big spanking (or no ice cream for the next two years, or whatever they
do at Microsoft for punishing...)


"Daniel Erkan" wrote:

> I'd like to use robocopy for some automated file copying.
> Everything it is supposed to do, is copy my users folder using /MIR.
> However, everytime it goes crazy with the hidden, localized AppData
> shortcut folders and goes in a loop, creating infinte of these folders,
> creating a structure like /appdata/appdata/appdata/appdata/appdata and
> so on.... until it gets kicked by the filesystem.
> I could offer a (German) log, if that's a help to anybody.
>
> Any ideas on how to fix that?
>
> Thanks!
>

Old 03-13-2007   #5 (permalink)
a
Guest


 

RE: Robocopy broken?

a

"Daniel Erkan" wrote:

> I'd like to use robocopy for some automated file copying.
> Everything it is supposed to do, is copy my users folder using /MIR.
> However, everytime it goes crazy with the hidden, localized AppData
> shortcut folders and goes in a loop, creating infinte of these folders,
> creating a structure like /appdata/appdata/appdata/appdata/appdata and
> so on.... until it gets kicked by the filesystem.
> I could offer a (German) log, if that's a help to anybody.
>
> Any ideas on how to fix that?
>
> Thanks!
>

Old 03-14-2007   #6 (permalink)
Daniel Erkan
Guest


 

Re: Robocopy broken?

Thanks a lot! That solved all my problems!

And you're absolutely right
Old 03-14-2007   #7 (permalink)
Michal Kawecki
Guest


 

Re: Robocopy broken?

"Daniel Erkan" <sho@gmx.li> wrote in message
news:55naviF25mdk6U1@mid.dfncis.de...
> Jimmy Brush schrieb:
>> Hello,
>>
>> It sounds like you may have changed the security on one of the
>> application compatability junctions, such as the Application Data
>> junction, and removed the "Deny: Everyone" permission from it.
>>
>> The solution would be to put the deny permission back on the
>> junction.

>
> The security has not been altered. For the sake of testing, I even
> tried what would happen, if I even gave it permission, but either way,
> the same thing happens.
> Now I'm even in the hassle, that I can't even remove the folders it
> has created. When I try to remove them, it just says the folder is too
> long. I can't delete a single file and I can't even rename them in
> order to shorten the length.
> Argh.. now I have broken folders as well...


Try deleting using \\.\ syntax, like in this example:

RD \\.\drive letter:\path\directory name
DEL \\.\drive letter:\path\file name

http://support.microsoft.com/kb/315226

Or use any tool where you can turn off use of long file names, like
Total Commander. Or, simply run Delinv
http://www.purgeie.com/delinv/index.htm .
--
Michal Kawecki [Windows - Shell/User MVP]
Warsaw, PL

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lots of problems - regedit is broken, taskbar is misbehaving, audio is broken.. HELP! Elspeth Vista General 3 07-02-2008 05:19 PM
how to use robocopy niks Vista file management 2 03-12-2008 10:22 AM
Robocopy leapyear Vista General 9 02-25-2008 03:42 PM
robocopy mediaplayerasker Vista file management 3 02-09-2008 09:44 AM
Robocopy Dag N Vista General 1 09-23-2006 03:24 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50