Options/Include/File Types question

Hello,

In Options, Include, I try to include the following after I click Add button :

Include/Drive or Folder: C\:

Fyle Tipes/File Types: *.diz;*.old;*.nch;*.wbk;*log.txt;~*.*;*.log;*.prv;*.sik;*.bak;*.ilk;*.aps;*.ncb;*.pch;*.$db;*.db$;*.^;*._dd;*._detmp;log*.txt;*.log?

Options: any of the 3 options

And the following warning or error appear: For system safety reasons you cannot select this specific location

What is the cause of this? Are there any of that file type not allowed? If yes, which of them?

Thanks

C:\ -> systemdrive and one of the system-paths

with

*.* -> i mean this can delete your whole os-stuff, if possible

for ex -> c:\ and filetype *.tmp is possible

On 14.7.2019 at 17:56, FabioA said:
<div class="ipsQuote_contents">
	<p>
		<strong>Fyle Tipes</strong>/File Types: *.diz;*.old;*.nch;*.wbk;*log.txt;<s><strong>~*.*</strong></s>;*.log;*.prv;*.sik;*.bak;*.ilk;*.aps;*.ncb;*.pch;*.$db;*.db$;*.^;*._dd;*._detmp;log*.txt;*.log?
	</p>
</div>

45 minutes ago, trium said:
<div class="ipsQuote_contents">
	<p>
		<strong>C:\</strong>  -&gt; systemdrive and one of the system-paths
	</p>

	<p>
		with
	</p>

	<p>
		<strong>*.*</strong> -&gt; i mean this can delete your whole os-stuff, if possible
	</p>

	<p>
		 
	</p>

	<p>
		for ex -&gt; c:\ and filetype *.tmp is possible
	</p>

	<p>
		 
	</p>

	<p>
		 
	</p>
</div>

You are right, I tried writing down each type, one by one and I encountered that the problem was with ~*.* when was present in the list. But ~*.* isn´t the same of *.*. Maybe CCleaner doesn´t allow all that contains *.*, no matter where it is located inside of the file type.

17 hours ago, FabioA said:
<div class="ipsQuote_contents">
	<p>
		 ~*.* isn´t the same of *.*. Maybe CCleaner doesn´t allow all that contains *.*, no matter where it is located inside of the file type.
	</p>
</div>
<div>
	<div>
		<div title="Protected by Grammarly">
			 
		</div>
	</div>
</div>
</blockquote>

The tilde simply makes the expression case sensitive.

As * doesn't have a case then the tilde is meaningless unless there are other letter characters present as well.

*.* is allowed in a CCleaner include/exclude, but only if you specify the rest of the pathname. (and it isn't a pathname to system files).

eg-

C:\Program Files\Some-program\Logs\*.*

C:\Program Files\Some-program\Temp\*.*

Are both perfectly acceptable, and wil delete all files in the specfied directories.