Jump to content
CCleaner Community Forums

Placeholder Variable for "My Documents"


Recommended Posts

Is there a predefined placeholder (like %appdata%) for the "My Documents" folder? I know, I could define an environment variable myself. But for %appdata% and %ProgramFiles% there are none defined either, so is CCleaner defining them elsewhere?

 

Also I found some entries in winapp.ini like "FileKey1=%userprofile%\Local Settings\Application Data\..." which are not found on a non-english windows, whereas "FileKey1=%appdata%\..." would be found alright. So those entries simply don't work on non-english windows.

Link to post
Share on other sites
  • Moderators

or Vista

 

%userprofile%\documents

 

ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION

DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF.

Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark)

ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T.

CCLEANER, RECUVA, DEFRAGGLER AND SPECCY DOCUMENTATION CAN BE FOUND AT  https://support.piriform.com/hc/en-us and  https://www.ccleaner.com/docs

Pro users file a PRIORITY SUPPORT request at https://support.piriform.com/hc/en-us/requests/new

link to WINAPP2.INI explanation

Link to post
Share on other sites
%UserProfile%\My Documents

 

%UserProfile% seems to point always to ..\Documents and Settings\<UserName>\

But one might have moved the "My Documents" elsewhere. In this case, do I have to hard-code the location?

There is a registry-key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal which specifies the real location of My Documents. This could be read by CCleaner and be adressed by some %MyDocs% variable in the winapp2.ini.

Link to post
Share on other sites
%UserProfile% seems to point always to ..\Documents and Settings\<UserName>\

But one might have moved the "My Documents" elsewhere. In this case, do I have to hard-code the location?

 

Another possibility is to move "My Documents" from elsewhere and back to where it belongs !!!

 

I remember a long series of posts in one thread on some forum.

 

It started with a complaint about lack of privacy - other users in other profiles could see all his private stuff in his "My Documents".

 

It ended when it was discovered that he had 'moved the "My Documents" elsewhere',

and in his case "elsewhere" was outside his profile - hence everyone had full access.

 

A "perfect" new O.S. installation, with all folders where Microsoft intended, still has "Gotchas" for the unwary.

Things can get worse when folders get shifted to the "wrong" places.

 

I suspect many non-Microsoft applications (e.g. CCleaner) might get broken if "My Documents" is in the wrong place.

 

Regards

Alan

Link to post
Share on other sites
Another possibility is to move "My Documents" from elsewhere and back to where it belongs !!!

 

It started with a complaint about lack of privacy - other users in other profiles could see all his private stuff in his "My Documents".

 

It ended when it was discovered that he had 'moved the "My Documents" elsewhere',

and in his case "elsewhere" was outside his profile - hence everyone had full access.

 

A "perfect" new O.S. installation, with all folders where Microsoft intended, still has "Gotchas" for the unwary.

Things can get worse when folders get shifted to the "wrong" places.

 

I suspect many non-Microsoft applications (e.g. CCleaner) might get broken if "My Documents" is in the wrong place.

Well, the question where My Documents "belongs" is in the eye of the beholder, in fact. I, for instance, don't like my data files being burried somewhere in the depths of the system partition but rather on a different drive. In case of a complete OS crash I can just reinstall Windows and don't have to bother to first rescue my data files from the disk. If I don't want other users to have access to my data, I just remove all the access rights for others from my data disk.

 

As for the original problem (in case, someone else is having this problem): The easiest solution is to define an environment variable in the system panel specifying the location of My Documents and then refer to it in the winapp2.ini. Then, in case one relocates My Documents again, one has to modify the env-variable accordingly.

Link to post
Share on other sites

At one time I thought I posted a request for CC to get system variables from the registry. But cant find the thread. For some years I have been running XP and now Vista with all user shell folders located on a separate partition. Makes backup(s) and restore a breeze since only Windows is on the system partition.

 

Anyway. It is required to hard code the paths. Which is also the case if you install some programs to a location other than the default. I asked about this not too long ago, but it seems no one really understood what I was trying to achieve. http://forum.piriform.com/index.php?showtopic=16852

Link to post
Share on other sites
At one time I thought I posted a request for CC to get system variables from the registry. But cant find the thread. For some years I have been running XP and now Vista with all user shell folders located on a separate partition. Makes backup(s) and restore a breeze since only Windows is on the system partition.

 

Anyway. It is required to hard code the paths. Which is also the case if you install some programs to a location other than the default. I asked about this not too long ago, but it seems no one really understood what I was trying to achieve. http://forum.piriform.com/index.php?showtopic=16852

This was exactly my problem. I too install my applications in a different folder than the "Program Files" because there is so much Windows-garbage and other applications-junk which is installed without notice. Same with "My Documents". And all these paths are written to the registry, so in principle it would be possible for CC to get them. The "My Documents" location is in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal and the install folders of applications must be some where in their uninstall infos. It's just that CC simply doesn't do that. So this would be a feater request.

 

Hope some devs agree with me...

 

regards,

Mike

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...