![]() |
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-08-13 07:01 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Search for all executable files under the specified disk colon character |
| Printable Version 6,344 / 41 |
| Floor16 3742668 | Posted 2006-10-21 00:50 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
Don't include "drive='d:' and" to search the entire disk. |
|
| Floor17 lxmxn | Posted 2006-10-21 01:03 |
| 版主 Posts 4,938 Credits 11,386 | |
C:\Documents and Settings\Administrator>wmic datafile where "extension='exe'" get caption What's going on? |
|
| Floor18 3742668 | Posted 2006-10-21 01:44 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
Can the specified drive letter be displayed normally?
|
|
| Floor19 zerocq | Posted 2006-10-21 01:58 |
| 中级用户 Posts 196 Credits 458 | |
|
The specified drive letter can be displayed normally
|
|
| Floor20 lxmxn | Posted 2006-10-21 02:02 |
| 版主 Posts 4,938 Credits 11,386 | |
This is okay.. |
|
| Floor21 3742668 | Posted 2006-10-21 02:03 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
Everything is normal here. Suspect that there was an operation related to WMI before, and the system hasn't disconnected the WMI connection. Try cleaning up memory or restarting.
|
|
| Floor22 zerocq | Posted 2006-10-21 02:04 |
| 中级用户 Posts 196 Credits 458 | |
|
The efficiency of MS wimc... is not too high >.<
|
|
| Floor23 3742668 | Posted 2006-10-21 02:04 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
Time's up, time to bounce.
When testing, you can first try changing it to ini or bat suffix. |
|
| Floor24 abenmao | Posted 2006-10-22 03:26 |
| 新手上路 Posts 6 Credits 12 From jiang xi | |
|
This software can be downloaded at http://www.highfiber.com/~raster/freeware.htm
Simply put, the biggest feature of this software is that it can perform various operations on the found files. The function is too powerful. For details, please refer to the software's help. As long as you copy locate.com to the WINDOWS\SYSTEM32 directory, you can call it freely in batch processing. For finding EXE files on the hard disk and then deleting them, you can use it like this (taking drive C as an example): locate c: *.exe /n /np /k /y or locate c:\*.exe /n /np /k /y Parameter explanation: /n: Display all found files with the full path /np: Do not pause by page when displaying, that is, display continuously /k: Delete the found files /y: Delete directly without asking for YES (Note: locate defaults to searching from the root directory and automatically searches all subdirectories and all partitions. That is to say, locate *.exe will search for EXE files in all partitions and all directories. Also, the parameter is case-insensitive.) If you want to find files on several partitions: locate c: d: f: *.exe /n /np /k /y If you don't want to search subdirectories, add the /nr parameter. If you only want to search the hard disk and not the CD-ROM, floppy disk, USB disk, add the parameter /r. For example: locate c:\windows\*.exe /nr only searches the c:\windows directory. If you want to stop searching when a specific file is found, you can use the parameter /f:n, where n is a number, indicating how many to search. For example: locate c:\windows\explorer.exe /f:2 searches for explorer.exe in c:\windows and its subdirectories, and stops when 2 are found. In short, this software is too powerful. The following attaches a batch processing for reference. ***************************************************** Function: - Rename EXE, DLL, and SYS files under the root directory where the Windows system is located, "windows", "program files", "Documents and Settings" and their subdirectories according to the age of the specified files. Enter rn without parameters to display the usage of this processing. ***************************************************** @echo off if "%1"=="" goto help0 :: locate c: d: e: f: g: \*.exe /R /NR /b1"rename" /d:t-%1,t > rnexe.bat locate c: d: e: f: g: \*.dll /R /NR /b1"rename" /d:t-%1,t > rndll.bat locate c: d: e: f: g: \*.sys /R /NR /b1"rename" /d:t-%1,t > rnsys.bat :: locate c: d: e: f: g: \winnt\*.exe /R /b1"rename" /d:t-%1,t >> rnexe.bat locate c: d: e: f: g: \winnt\*.dll /R /b1"rename" /d:t-%1,t >> rndll.bat locate c: d: e: f: g: \winnt\*.sys /R /b1"rename" /d:t-%1,t >> rnsys.bat :: locate c: d: e: f: g: \windows\*.exe /R /b1"rename" /d:t-%1,t >> rnexe.bat locate c: d: e: f: g: \windows\*.dll /R /b1"rename" /d:t-%1,t >> rndll.bat locate c: d: e: f: g: \windows\*.sys /R /b1"rename" /d:t-%1,t >> rnsys.bat :: locate c: d: e: f: g: \progra~1\*.exe /R /b1"rename" /d:t-%1,t >> rnexe.bat locate c: d: e: f: g: \progra~1\*.dll /R /b1"rename" /d:t-%1,t >> rndll.bat :: locate c: d: e: f: g: \docume~1\*.exe /R /b1"rename" /d:t-%1,t >> rnexe.bat locate c: d: e: f: g: \docume~1\*.dll /R /b1"rename" /d:t-%1,t >> rndll.bat :: call rnexe.bat *.eee call rndll.bat *.ddd call rnsys.bat *.sss echo ... >log.txt echo rnexe.bat >>log.txt echo rndll.bat >>log.txt echo rnsys.bat >>log.txt goto end0 :: :help0 cls @echo *********************************************************************** @echo Function description @echo - Rename EXE, DLL, and SYS files under the root directory where the Windows system is located, "windows", "program files", "Documents and Settings" and their subdirectories according to the age of the specified files. @echo *********************************************************************** @echo Usage @echo - rn The age of the file relative to the current date @echo Examples are as follows @echo rn 0: Only rename EXE, DLL, SYS and other files generated today @echo rn 1: Rename EXE, DLL, SYS and other files generated today and yesterday :end0 @echo *********************************************************************** @echo Please refer to log.txt for the changes of files. @echo. :end0 |
|
| Floor25 abenmao | Posted 2006-10-22 03:35 |
| 新手上路 Posts 6 Credits 12 From jiang xi | |
|
For deleting EXEs within specified dates
locate c: *.exe /n /np /k /y /d:t! Only delete EXEs generated today locate c: *.exe /n /np /k /y /d:t-5 Delete all EXE files generated from 5 days ago to today locate c: *.exe /n /np /k /y /d:t-5,t-2 Delete EXEs generated between 5 days ago and 2 days ago locate c: *.exe /n /np /k /y /d:2006-10-18,2006-10-20 Delete EXEs generated between October 18 and 20, 2006 (The date format needs to be adjusted according to the system settings) |
|
| Floor26 redtek | Posted 2006-10-22 03:35 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
| Floor27 vkill | Posted 2006-10-22 03:44 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
LOCATE.COM
Looks good~ |
|
| Floor28 lxmxn | Posted 2006-10-22 06:15 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Using this small tool makes it much easier to solve the owner's problem. Download and play with it~ |
|
| Floor29 af01 | Posted 2006-11-02 10:39 |
| 初级用户 Posts 10 Credits 20 | |
|
May I ask, can the "input the drive letter for search" above be multiple?
|
|
| Floor30 Thewindeagle | Posted 2006-11-02 12:10 |
| 新手上路 Posts 9 Credits 18 From 湖南 | |
|
I didn't see it. Which line points to the entire disk? Is it the entire disk or points to a fixed position?
|
|
| Prev 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |