![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-09-15 12:30 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| DOS批处理 & 脚本技术(批处理室) » Is there anyone who wants to make a batch script for garbage cleaning? |
| Printable Version 5,911 / 20 |
| Floor1 electronixtar | Posted 2006-10-23 08:11 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
CCleaner is well done, but it must be installed. Too disgusting. Can we make a batch script?
Extract the databases in CCleaner, winapp.ini, winreg.ini, winsys.ini, and then use batch to read the ini files, and then use general statements to perform these operations. Since CCleaner has claimed copyright, it is not convenient to post it here. Friends who want to study can download a CCleaner There is a new type of junk that may not be cleared by CCleaner: Windows patch backups [ Last edited by electronixtar on 2006-10-23 at 08:17 ] |
|
| Floor2 namejm | Posted 2006-10-23 08:25 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
There are already people on the Internet who have made batch scripts for system garbage cleaning, but they can only clear temporary files and backup files and other things in a few fixed locations like %tmp% in the system. There are no specific garbage files for specific software. It seems that batch scripts for clearing garbage can be further studied.
Attachments 快速清理垃圾文件安装版.rar (1.27 KiB) |
|
| Floor3 electronixtar | Posted 2006-10-23 08:42 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Heheh, those things are not systematic and not comprehensive. We can make one that can automatically update the database and is comprehensive, and make it modular. For example, cleaning the folder is a function, and then read an ini file to call this function. In this way, users can add the content they need by themselves. Just cleaning files is not enough; it should also include registry and third-party software cleaning. I mention the importance of CCleaner because CCleaner is comprehensive. It really covers everything.
The version of moderator namejm is too little, too basic. And the temporary file directories collected in CCleaner are not at the same level as the above batch script. Here is a rough one, which can be used as a reference and also comes from CCleaner's data. Don't say I infringe on copyright, I'm just "academic discussion"
More detailed ones are in the installation directory of CCleaner. Due to copyright issues, I can't post them directly. You can download one and have a look. [ Last edited by electronixtar on 2006-10-23 at 08:51 ] |
|
| Floor4 electronixtar | Posted 2006-10-23 10:38 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Well, my idea is like this: a ccleaner.bat, and then winapp.ini, winreg.ini, winsys.ini. ccleaner reads these configuration files.
Structure of ccleaner.bat :Main :ReadINI :DelFiles :DelReg |
|
| Floor5 namejm | Posted 2006-10-23 11:08 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
Reading the paths in the ini file and extracting the registry - formatted paths and non - registry - formatted paths is very easy to do, and deleting them is also a piece of cake. It's just that it's not very convenient to delete the files in the specified path; generally, all the found ones are deleted. This is also a big difference between the character interface and the graphical interface. Although batch processing can realize some functions, I personally feel that the graphical interface is more convenient.
|
|
| Floor6 lxmxn | Posted 2006-10-23 12:28 |
| 版主 Posts 4,938 Credits 11,386 | |
|
It is suggested that the landlord extract the garbage files to be deleted and the registry paths to be deleted in ccleaner, because the average person does not know so comprehensively. We can refer to the inside paths to make batch processing. |
|
| Floor7 namejm | Posted 2006-10-24 01:06 |
| 荣誉版主 Posts 1,737 Credits 5,226 From 成都 | |
|
Here is a demonstration code for extracting paths. You can take it and refine it:
|
|
| Floor8 electronixtar | Posted 2006-10-24 01:11 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
If ccleaner didn't have such a boring public statement of copyright, I would have already posted it. I think making a league-standard ini format, how about it? |
|
| Floor9 vkill | Posted 2006-10-24 01:25 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
I think it's up to personal preference to clean up junk.
|
|
| Floor10 xypcmac | Posted 2006-10-24 02:44 |
| 初级用户 Posts 80 Credits 167 | |
|
This is a necessary task for every computer. Having this is necessary... Convenience is good!
|
|
| Floor11 electronixtar | Posted 2006-10-24 03:39 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
What I mean is to make a very comprehensive, the most powerful and convenient garbage cleaning tool in China. And the format is open, you can add paths by yourself and modify the bat module by yourself
|
|
| Floor12 lxmxn | Posted 2006-10-24 05:24 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Yeah, support~~ |
|
| Floor13 10it | Posted 2006-10-29 16:36 |
| 新手上路 Posts 3 Credits 6 | |
|
“What I mean is to make a very comprehensive, the most powerful and convenient garbage cleaning tool in China. And the format is open, you can add paths by yourself, and modify the bat module by yourself”
The landlord has a commendable spirit. I just started learning DOS and can't help much. But I'm very happy to meet so many friends who really like DOS here. |
|
| Floor14 chainliq | Posted 2006-10-29 18:59 |
| 高级用户 Posts 244 Credits 635 From 广西贵港 | |
|
Well, not bad, everyone keep up the good work. And, I think the speed of batch processing to clear garbage is not worse than that of third-party software oh!
|
|
| Floor15 雨露 | Posted 2006-10-29 20:57 |
| 管理员 Posts 2,601 Credits 6,215 | |
|
I'm now afraid to delete junk. The last time I used Super Rabbit to clean the system, it ended up deleting my hard - earned 400MB collection of DOS software without a trace! Now I'm using manual methods!
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |