Re: Customization of Disk Cleanup
- From: "Ravi Verma" <adminravi@xxxxxxxxx>
- Date: Sat, 15 Apr 2006 22:38:53 +0530
Thanks very much now my file looks like this.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Cu
stomDeleter]
@="{C0E13E61-0CC6-11d1-BBB6-0060978B2AE6}"
"FileList"="*.jpg|*.bmp"
"Folder"="C:\tempscan"
"Flags"=dword:00000000
"LastAccess"=dword:00000002
"StateFlags"=dword:00000001
"Display"="Custom"
"Description"="Clears a custom folder"
Now, I have two questions:
1. can i save this text file into reg file like clean.reg and double click
on the file. will that add these entries into the registry?
2. Can I use "FileList"="*.*" ?
Regards,
Ravi Verma
now I have two questions to ask,
"David Candy" <.> wrote in message
news:u4elCDHYGHA.1200@xxxxxxxxxxxxxxxxxxxxxxx
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\CustomDeleter]
@="{C0E13E61-0CC6-11d1-BBB6-0060978B2AE6}"
"FileList"="*.fred"
"Folder"=hex(2):63,00,3a,00,5c,00,64,00,65,00,73,00,6b,00,74,00,6f,00,70,00,00,\
00
"Flags"=dword:00000000
"LastAccess"=dword:00000002
"StateFlags"=dword:00000001
"Display"="Custom"
"Description"="Clears a custom folder"
You put above in a text file and edit the fields,
Firstly what files do you want to delete. Lets assume your scanner does TIF
files. Lets also say that you edit the TIF files with paint and save some as
TIFF. So file list will become
"FileList"="*.tif|*.tiff"
For the path if you just want to specify a hard coded name just type it -
the above numbers are how regedit exports text in a special format that
converts %windir% to c:\windows. In Regedit you will see it as text.
"Folder"="c:\tempscan"
--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"Ravi Verma" <adminravi@xxxxxxxxx> wrote in message
news:u7GphHyXGHA.4432@xxxxxxxxxxxxxxxxxxxxxxx
Thanks very much for your suggestion but If you can put it in step wise
then
it will be little easier for me. say for example, my scanner uses a temp
folder c:\tempscan and it keeps on growing as i keep on scanning images.
now
what I want is the I want to extend the windows inbuild disk cleanup
utility
to include this folder as well. Please guide me step wise to do this. so
that following the steps I can add any number of folders into the disk
cleanup utility which will save lot of time.
Regards,
Ravi Verma
"David Candy" <.> wrote in message
news:eBQ$LggXGHA.3448@xxxxxxxxxxxxxxxxxxxxxxx
You can extend the inbuilt cleaner.
Here's one I just made that does *.fred in c:\desktop if more than 2 days
since last accessed.
Merge the file then look here in the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\CustomDeleter
and alter the path and filetype (I didn't want to delete my hard drive by
mistake as 98 disk cleanup threatened to do if you customised parameters).
Also as the path is an Expand type it's in hex in the regfile and in
english
in the reg (because regfiles don't support expand so it uses hex). If
using
environmental variables the data type must be expand.
I created a file called New Text Document.Fred, set my clock forward, and
it
deleted. It didn't delete unless I set the clock forward so it shows the
time is working (note it is last access not modified or created).
To use
cleanmgr /sageset:<a number>
and only tick the Customer Deleter
This sets it up
Then to run or schedule
cleanmgr /sagerun:<same number used above>
You can have as many pairs of sageset/run as you want.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\CustomDeleter]
@="{C0E13E61-0CC6-11d1-BBB6-0060978B2AE6}"
"FileList"="*.fred"
"Folder"=hex(2):63,00,3a,00,5c,00,64,00,65,00,73,00,6b,00,74,00,6f,00,70,00,00,\
00
"Flags"=dword:00000000
"LastAccess"=dword:00000002
"StateFlags"=dword:00000001
"Display"="Custom"
"Description"="Clears a custom folder"
To make multiple cleaners just change the last key name (CustomDeleter)
Seperate multiple filetypes like so (pipe)
*.fred|*.horse
Seperate multiple directories the same way.
c:\desktop|C:\games
Use this syntax for directories ?:\recycled
Which will do all drives or the specified drive (depending on how cleanup
is
being used)
Last Access can be set to 0 for instant deleting.
AFAIK Disk Cleanup won't delete user data only IE's cache. There is more
there than IE's cache.
--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"Ravi Verma" <adminravi@xxxxxxxxx> wrote in message
news:eDDCWdgXGHA.4920@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I want to add a few more folders into the windows xp disk cleanup
utility.
The utility already have, Downloaded Program Files, Temporary Internet
Files, Recycle Bin, Temporary files, WebClient/Publisher Temporary Files,
Compress old files, Catalog files for the content indexer. Now I want to
add
a few more folders for cleaning like prefetch, cookies, and some other
temp
folders which I use. Is it possible to add a few folders into the
diskcleanup utility of windows xp? if yes please let me know how. if it
can
be customized then it will be of great help to users like us.
Regards,
Ravi Verma
.
- References:
- Customization of Disk Cleanup
- From: Ravi Verma
- Re: Customization of Disk Cleanup
- From: Ravi Verma
- Customization of Disk Cleanup
- Prev by Date: Re: Outlook express
- Next by Date: Re: Desktop Font Background Color
- Previous by thread: Re: Customization of Disk Cleanup
- Next by thread: Scroll bar codes not working on my web page
- Index(es):
Relevant Pages
|