Solved Stop Application Data folder replicating?

leaning

New member
Local time
7:51 PM
Messages
4
Hello!

Anyone know how to stop this:

C:\Users\J\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Microsoft\Windows\Temporary Internet Files\Content.IE5\K130UVXF\mini_30CANJ0PFK.gif

(This is an example file. For some reason, the Application Data folder keeps replicating itself as a subfolder within the directory. And the "thread" is getting longer and eating up GBs. Is there something I can check to fix this?

VR/Lost
 

My Computer

OS
Windows 7 Home Premium 64bit
You altered permissions correct? Gave yourself full permissions for everything in your User folder, right?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
The "Application Data" Folder is actually a Junction, and it points back to the parent folder.

"C:\Users\J\AppData\Local\Application Data\" => "C:\Users\J\AppData\Local\"​

My guess is that the Permissions for the "Application Data" were changed. There should be a Permission:

Deny - Everyone - List folder / read data - <not inherited> - This folder only​

This is to prevent recursion when an application is scanning the "Application Data" folder, and this is the reason for the "Access is denied" message on certain folders. If this Permission is missing, you will need to re-create it. To make sure it is a Junction, open a Command Prompt at "C:\J\AppData\Local", and enter "dir /a". You should see:

<JUNCTION> - Application Data - [C:Users\J\AppData\Local]​

If not, you will need to recreate it. For more info, Google "Windows 7 junctions symbolic hard links syntax". You can also enter "mklink /?" at a Command Prompt. Hope this helps.
 

My Computer

OS
Windows 7 Professional x64
All,

That is exactly what I did. Awhile ago, I was doing something and kept getting the "Access is denied" message when I was working with a particular folder.

I believe my thought was "It's my computer and I am the only user. I decide who denies access!" (I may have even beat my chest and roared. I wasn't going to let some computer get over me!)

Anyway, I went to Windows Explorer, right-clicked the c:\, chose Properties>Security. Clicked the Advanced Button, and changed all the permissions to:

Allow Authenticated Users Full Control <not inherited> Apply to this folder, subfolders, and files

I did the same thing for SYSTEM, Administrators (J-PC\Administrators), and Users (J-PC\Users).


So, in my zeal, I succeeded in giving everyone full control to everything on the c:\ drive (and not getting that error message anymore), but I also gave programs free access to everything, too.

I can go to "C:\Users\J\AppData\Local\" as suggested and fix that one permission, but the problem is originating way upstream at the root (c:) directory.

What is the best sequence of steps I can take to undo what I have done so that all the junctions are working like they should and all of the cascading duplicate subdirectory junction things are removed?

I appreciate everyone's help in pulling me out of this mess I got myself into.

VR/Lost
 

My Computer

OS
Windows 7 Home Premium 64bit
Personally, I would re-install if I did not have a backup image.

Otherwise, I would accept a potentially flaky system. I do not know what problems this may have caused. It may not be causing any real problems, but I am not an expert. I think the size growth is caused by the same files being read multiple times. Unless you deleted the "Application Data" folder, it is still a Junction, and it is only a pointer to another folder.

You cannot be the only one who has done this, and you may want to search for a utility or procedure to re-set things. System File Checker (sfc) may help, but I do not know enough about it. You could also try to Repair Windows, but you would probably trash your installed applications.

Before making any changes, the first thing I would do is to image your hdd / system partition. I use BartPE & DriveImageXML, but there are a number of applications.

Manually recreating the Permissions is not difficult, but you will need to find them all. But, not all Junctions need these Permissions. Some may need to be able to walk the directories. I know about Junctions, Symbolic Links, and Hard Links because I wanted to move the Profiles folder. Not easy, but doable.

If you decide to do it manually, you will need to find the Junctions and fix the Permissions. At the command prompt, "dir /a" will include a list of Junctions for that directory. If you have another Windows 7 system, you could compare the two, but it will still be a pain.

Good Luck.
 

My Computer

OS
Windows 7 Professional x64
All,

Thanks for all your help and knowledge. Here is what I ended up doing and it only took a few minutes.

a) Download a program called JunctionBox
b) Extract
c) Run JunctionBox.exe
d) Select "All Profiles and System Junctions" from dropdown.
d) Click "Backup Junctions" button.
e) Name the backup file whatever and let it do its thing.
f) Click "Restore Junctions" button.
g) Select "DefaultJunctions.ntj"
h) Let it do its thing.
i) When you look in Windows Explorer, some of your folders will have little arrows on them that look like the "Shortcut to.." arrows. Those are the junctions that have been restored.
j) When you click on them, you get the "Access is denied" error message that I hate.
k) That was easy and it all looks good now. I'll post if I find out otherwise.

Thanks again!

VR/Lost
 
Last edited:

My Computer

OS
Windows 7 Home Premium 64bit
Junction Box

Thank you Thank you Thank you (replication pun not intended!). That worked perfectly! :):D:geek:

Allofus
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Home Premium
All,

Thanks for all your help and knowledge. Here is what I ended up doing and it only took a few minutes.

a) Download a program called JunctionBox
b) Extract
c) Run JunctionBox.exe
d) Select "All Profiles and System Junctions" from dropdown.
d) Click "Backup Junctions" button.
e) Name the backup file whatever and let it do its thing.
f) Click "Restore Junctions" button.
g) Select "DefaultJunctions.ntj"
h) Let it do its thing.
i) When you look in Windows Explorer, some of your folders will have little arrows on them that look like the "Shortcut to.." arrows. Those are the junctions.
j) When you click on them, you get the "Access is denied" error message that I hate.
k) If you right-click those junctions, and click "Take Ownership", you can expand the files and see that all the duplicate folders (in my case, many Application Data's) are gone now.
l) After I did the take ownership thing, I redid steps c) through h) above to make sure everything was still good.
m) That was easy and it all looks good now. I'll post if I find out otherwise.

Thanks again!

VR/Lost

Why would you fix it and then go take ownership again? That's what caused this in the first place. Eliminate K-M and your instructions look good. You do not need to look inside these junction points. You can access those locations from elsewhere in the file system!
 

My Computer

Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate RTM (Technet)
CPU
3.00 gigahertz Intel Core2 Duo E8400
Motherboard
ASUSTeK Computer INC. P5K/EPU Rev 1.xx
Memory
4GB
Graphics Card(s)
ATI Radeon X1950 Pro
Sound Card
Built in HD Audio
Monitor(s) Displays
22" Gateway LCD
Screen Resolution
1920 x 1200
Hard Drives
ST3160023A [Hard drive] (160.04 GB) -- drive 0, rev 8.01, ST3500630AS [Hard drive] (500.11 GB) -- drive 2, rev 3.AAK
ST3500630AS [Hard drive] (500.11 GB) -- drive 1, rev 3.AAK
Keyboard
Logitech G11
Mouse
Microsoft Wireless Laser Mouse 5000
Internet Speed
13.44 Mbps
JunctionBox

Hi,

Where can I download the program called JunctionBox?

Thanks,

Dick
 

My Computer

OS
windows 7 home premium 64 bit
JunctionBox

Whooboy! JunctionBox rocks! Fixed the many levels of duplicate folders in a flash.

MANY THANKS.
biggrin.gif
biggrin.gif
biggrin.gif
biggrin.gif
biggrin.gif


Regards,

Dick
 

My Computer

OS
windows 7 home premium 64 bit
Glad we were able to help you out.
Regards
JohnnyA
 

My Computer

Computer Manufacturer/Model Number
Toshiba C650
OS
Windows Home Premium 64bit
CPU
T61-- 2.0ghz
Motherboard
Toshiba
Memory
4 GB
Graphics Card(s)
On board
Sound Card
On board
Monitor(s) Displays
15.6"
Hard Drives
500 GB
To whom it may concern:

If you understand Junctions, Hard Links, and Symbolic Links, please disregard.

If you do not understand these, I would highly recommend leaving them alone. You also need to understand the Security permissions for them and the reason Microsoft used them.

(Windows 7 x86 or 64-bit)

Junctions, Hard Links, and Symbolic Links are pointers to other objects, and these objects include Junctions, Hard Links, and Symbolic Links. In Windows Explorer (file manager), there is no indication if a folder is actually a folder or a Junction. A Junction can point to an actual folder, and that folder can include a Junction that points to another folder. (I think a Junction can point to another Junction, but I may be wrong.) Deleting a Junction will only delete the pointer, but copying a Junction will paste a copy of the actual folder. Hard Links and Symbolic Links work differently. One or both will delete the actual folder when it is deleted. If you want more information, Google Hard Links and/or Symbolic Links.

Junctions, Hard Links, and Symbolic Links are quite useful, but you need to understand how they work. I believe that the Windows "Libraries" use these, or something similar. For example, you could create your own Library as a folder on your Desktop. These are functionally equivalent to the actual folders, and an application will not know that it is not using the actual folder. Some applications store data in their "C:\Program Files\" directory, but using a Junction you could change where it stores its data.

One problem that can arise is creating a folder st the actual location. A Junction for "C:\Program Files\Some Game\Saved Games\" could point to "D:\All Games\Some Game\Saves\". If for some reason an actual folder was created in the original folder, it can cause problems. If an actual folder is created in the "C:\Program Files\Some Game\Saved Games\" directory, strange things can happen. You could have a Junction for "C:\Program Files\Some Game\Saved Games\" and a folder "C:\Program Files\Some Game\Saved Games\New Folder". If I am not mistaken, these will be presented as the same location. This is similar to the Windows Start Menu.

With Windows 7, Microsoft decided to cleanup some of the older locations for certain folders. Among these is "My Documents". Some Applications have hard-coded the path based upon older Windows versions. Using Junctions allows these Applications to think they are writing and reading from the original location. Some Applications will "walk the tree" to determine the location, and they can inadvertently create a folder in the original location. In order to keep this from occurring, Microsoft set certain Security permissions on these Junctions ("List folder" and "Traverse folder"). The "Trusted Installer" is the Owner, and taking Ownership from this user is difficult but not impossible. This was done to keep Users from "breaking" the file structure. Windows Explorer is an Application, and therefore, it cannot "List folder" to display the contents.

The multiple folders arise because a Junction may point to folder that has a Junction(s) that eventually points back to the original folder. Also, an actual folder may have been created in the location the first Junction is re-mapping. The result is that they regress on themselves. This is similar to two mirrors pointing at each other or a TV camera showing a TV set with the picture from the camera.

To my knowledge, Microsoft has not documented this in one place. In order to learn this, I had to do a lot of Googling and reading. Some of these things are in the Developer documentation and other things are "Tribal Knowledge". I was trying to move my "Users" folder from the "C:\Users\" to "D:\UserFiles\", and I was determined to do it. Contrary to the usual answer, it IS possible, but it is NOT easy. I did it, and it worked. I reverted back because I missed something somewhere, and folders were being created in the re-mapped locations.

(I also replaced the HAL which is impossible according to Microsoft. It is doable but not pleasant.)

I did not go into this detail in my original reply because you really should plan to reinstall or restore a disk image. I do not know if System Restore will replace the original file structure (Junctions and permissions), but restoring from a backup will not. Somewhere down the road, you are going to have stranger things happening, and you will reinstall Windows. At this point, you should image your disk because you may not have gotten all your data, and this will allow you to find it.

Finally, you should do some research before using a utility like JunctionBox. There are a lot of ramifications to making these changes. The "Take Ownership" utility is another one to be used with caution. The above is not a definitive explanation. That would take more time than I am willing to expend.

This is not a flame - just an observation. If you cannot find a System utility like JunctionBox by Googling it, you really should not be using it.

---
 

My Computer

OS
Windows 7 Professional x64
JunctionBox

OK, that made my brain hurt...

Re-installing Windows is not always the easiest option.

Would a repair installation fix junctions? By repair, I mean the process whereby all your programs and information persist.

A clean installation is VERY painful for established systems. Lots of time is spent recovering data and program information from the old installation. And then, I usually miss something in the process...

Slowly, ever so slowly, I'm getting a better understanding of junctions, but this seems like a rat hole I'm not sure I want to go down. Suffice it to say I learned a lesson about permissions/ownership which I won't forget. Now, if it was only a bit more clear to the semi-skilled individual what causes the major pain when Microsoft decides to change the underlying file structure, life would be better.

I listed the Junctions on my old XP box and find that, though there are a few in obscure windows system folders, XP didn't make a lot of use them for redirection. Hence, the lack of problem with permissions in XP...

Try to find clear instructions on how to migrate to Outlook in Win7 from Outlook Express in XP. Note that Outlook Express went away in Win7... It isn't pretty.

An analysis of what Junctionbox actually does under the covers would be helpful. So far, I'm still pleased with it, but I accepted the results with a bit of blind faith.

Regards,

Dick
 

My Computer

OS
windows 7 home premium 64 bit
some observations, a few questions

I have not used junctionbox yet, worried lol After I back up, just click "restore" and everything will be fixed?

I have not been able to get Thunderbird to work on this laptop, brand new right out of the box. I can not get it to see a different profile from another machine I copied to this laptop. I changed the permissions to get at the ini file. I have been creating restore points along the way as I set up this laptop the way I want it to work. Thats when I noticed I have multiple Application folders.

Surfing the net I found another situation somebody else was having a problem with winamp making duplicate music files.

I have never liked the documents folder, even in XP. because if a hard drive crashes it can be difficult to extract files from the hard drive. A lot easier if all the data resided in the root directory, easier to find. I have always told people to use c: for data and create folders and back up to an external drive.

I recreated the winamp problem by installing and just letting the program install everything in its default locations. I uninstalled and installed to c:\winamp, problem gone. Have not tried installing Thunderbird again.

A wild assumption here, if all programs were installed to c:\ would it not get rid of a lot of these problems? I realize a lot of people do not actually use windows explorer like I do. I learned DOS and a simple file structure. Do not understand why it has to be changed, not logical.

I am going to try installing everything to the root directory and see if it is better when any files need to be manipulated.

~Win7 is Vista in disguise~
 

My Computer

OS
win7 home premium
Hi,

I downloaded JunctionBox and before I could even install it Norton NIS quarantined the executable calling out something called "Suspicious.Cloud.2" Anybody else see anything in the zip file that flagged their AV?s Sounds like this is working for folks, but I sure don't want to have to chase a bunch of ghosts around a win 7 machine (again).
 

My Computer

Computer Manufacturer/Model Number
HP DV6-2190
OS
Windows 7
CPU
Intel quad core I7
I dont use Norton so I dont know how that affects this program. It ran ok for me. I use Avg, spybot, malwarebytes, hijackthis and everything is good on my computers.
Personally I would never use norton or mcafee, IMHO they are not worth the trouble. AVG, saddly is becoming like them.
I dont know where you downloaded the program from. I used the link in this thread and it ran ok for me
 

My Computer

OS
win7 home premium
Hello stonnnneeee, thanks for the reply.

I did cross check it with MalwareBytes and that didn't show anything. I checked on Norton's forum and it turns out the Suspicious.Cloud thing is some kind of detection algorithm Norton runs that determines something to be the type of file that may...... I'm going to resurrect it and run it based on the recommendations I've seen here.

Thanks again
 

My Computer

Computer Manufacturer/Model Number
HP DV6-2190
OS
Windows 7
CPU
Intel quad core I7
Thanks

Thanks for sharing this fix. Worked first time, I did not backup as I could not see the point as a reinstall takes but a few minutes. I used the 'DefaultJunctions.ntj' to reset everything and it worked a treat.

:dinesh: :dinesh: :dinesh: Thanks for saving me a lot of time. :dinesh: :dinesh: :dinesh:
 

My Computer

Computer Manufacturer/Model Number
Horus Alpha Omega.
OS
Win 7 64 Pro
CPU
AMD Phenom X4 9550 B3.
Motherboard
M2N-SLi Deluxe.
Memory
OCZ DDR2 PC2-8500 Reaper HPC Edition.
Graphics Card(s)
PNY 460GTX 1gb.
Sound Card
Creative X-Fi Fatal1ty Pro.
Monitor(s) Displays
Samsung SM223BW & Dell 1707FP.
Hard Drives
2x Raid0 WD (2x80gb)for OS, Seagate (2x250gb) Software. Hitachi (2x500gb) Backup & Images/videos.
PSU
800w not sure of manufacturer.
Case
Alienware (black with multi change lights).
Cooling
Scythe ZIPANG-2.
Back
Top