Page 1 of 1

Use of System Variables

Posted: Wed Dec 09, 2009 11:34 pm
by Pacheco
Hi...
I want to report a situation and at the same time ask for a feature...

In the include/exclude list, i can't use system variables, like for example %USERPROFILE%.
It is of extreme use in order to make the program portable (or to use it after a format, if the username changes).

This is because I want to exclude the temporaries of Chrome, Firefox and Internet Explorer, and if i use paths like:

Code: Select all

C:\Documents and Settings\Administrator\Local Settings\Application Data\Google\
C:\Documents and Settings\Administrator\Application Data\Mozilla\Firefox
C:\Documents and Settings\Administrator\Local Settings
it works, but this but this:

Code: Select all

%USERPROFILE%\Local Settings\Application Data\Google
%USERPROFILE%\Application Data\Mozilla\Firefox\Profiles\
%USERPROFILE%\Local Settings\Temporary Internet Files
don't work, because it can't interpret the correct paths.
This makes the application dependent of the username of the system (not so good to use as a portable application)

Can anyone tells me if there is a work around, and at the same time, this is a request to the developer (of this great application!!)

Thx

Re: Use of System Variables

Posted: Thu Dec 10, 2009 7:43 am
by void
I think this would be best done with the following exclude filters:

Code: Select all

*\Local Settings\Application Data\Google\*
*\Application Data\Mozilla\Firefox\Profiles\*
*\Local Settings\Temporary Internet Files\*
These should work for the latest alpha.

I will consider the use of %% variables.

Re: Use of System Variables

Posted: Thu Dec 10, 2009 6:27 pm
by ale5000
It isn't enough since on Windows XP the name of "Local Settings" and "Application Data" folders change depending of the language of the OS.
If I remember correctly there are APIs to get the path of the "Local Settings" and the "Application Data" folders.

Re: Use of System Variables

Posted: Thu Dec 10, 2009 8:51 pm
by Pacheco
void wrote:I think this would be best done with the following exclude filters:

Code: Select all

*\Local Settings\Application Data\Google\*
*\Application Data\Mozilla\Firefox\Profiles\*
*\Local Settings\Temporary Internet Files\*
These should work for the latest alpha.

I will consider allow use of %% variables.
Using the latest alpha (that i was already using), your filters don't work...
The contents of that folders still appear in the searches.. :?

ale5000 wrote:It isn't enough since on Windows XP the name of "Local Settings" and "Application Data" folders change depending of the language of the OS.
If I remember correctly there are APIs to get the path of the "Local Settings" and the "Application Data" folders.
In fact, it might be true... That folders i'm not sure (i believe you), as the desktop and my documents folders change depending on the language of the XP versions....

I might have to figure out an alternative that works :?

Re: Use of System Variables

Posted: Fri Dec 11, 2009 6:32 pm
by ale5000
There is a windows API called SHGetFolderPath

Re: Use of System Variables

Posted: Fri Dec 11, 2009 10:54 pm
by void

Code: Select all

*\Local Settings\Application Data\Google\*
*\Application Data\Mozilla\Firefox\Profiles\*
*\Local Settings\Temporary Internet Files\*
Should work for the next release of "Everything".

I have added support for %% variables to my "Things to do" list...

Re: Use of System Variables

Posted: Sat Dec 12, 2009 4:25 pm
by ale5000
In this case:

Code: Select all

Italian Windows XP: C:\Documents and Settings\[User]\Impostazioni locali\Dati applicazioni\
English Windows XP: C:\Documents and Settings\[User]\Local Settings\Application Data\
the support for %% variables doesn't help.

Re: Use of System Variables

Posted: Sat Dec 12, 2009 10:10 pm
by void
I will consider supporting the following additional variables:

Code: Select all

%ADMINTOOLS%
%COMMON_ADMINTOOLS%
%APPDATA%
%COMMON_APPDATA%
%COMMON_DOCUMENTS%
%COOKIES%
%HISTORY%
%INTERNET_CACHE%
%LOCAL_APPDATA%
%MYPICTURES%
%PERSONAL%
%PROGRAM_FILES%
%PROGRAM_FILES_COMMON%
%SYSTEM%
%WINDOWS%