Se avete il Platform SDK Microsoft installato (the February 2003 version è l'ultima che funziona con Microsoft VC6), si può afferrare il programma where.exe
(è 38K solo 18 carati, se si gzip) e eseguire
where notepad.exe
aiuto dal comando where
:
WHERE [/R dir] [/Q] [/F] [/T] pattern...
Description:
Displays the location of files that match the search pattern.
By default, the search is done along the current directory and
in the paths specified by the PATH environment variable.
Parameter List:
/R Recursively searches and displays the files that match the
given pattern starting from the specified directory.
/Q Returns only the exit code, without displaying the list
of matched files. (quite mode)
/F Displays the matched filename in double quotes.
/T Displays the file size, last modified date and time for all
matched files.
pattern Specifies the search pattern for the files to match.
Wildcards * and ? can be used in the pattern. The
"$env:pattern" and "path:pattern" formats can also be
specified, where "env" is an environment variable and
the search is done in the specified paths of the "env"
environment variable. These formats should not be used
with /R. The search is also done by appending the
extensions of the PATHEXT variable to the pattern.
/? Displays this help message.
NOTE: The tool returns an error level of 0 if the search is
successful, of 1 if the search is unsuccessful and
of 2 for failures or errors.
Examples:
WHERE /?
WHERE myfilename1 myfile????.*
WHERE $windir:*.*
WHERE /R c:\windows *.exe *.dll *.bat
WHERE /Q ??.???
WHERE "c:\windows;c:\windows\system32:*.dll"
WHERE /F /T *.dll
fonte
2009-02-06 14:16:30
Qualunque soluzione decidiate, preparatevi a * non * trovarli affatto. Ho eliminato uno o entrambi su alcuni sistemi (perché dovrei tenere il blocco note.exe around quando ho notepad ++) –
@Stephen: Qual è il punto in cui si eliminano piccole cose così leggere che non rilasceranno realmente alcuna risorsa ma introdurranno solo il rischio di rompere alcuni programmi? – chiccodoro