In the Windows2000 Professional version of the support tools, there are a lot of information is a tool for the query. Filever.exe is one of them, which is a command-line based tool for viewing file versions. The scope that it can view includes the local computer and the remote computer. You can view individual files and view directory structure information. The main types of files that can be viewed are executable files (. EXE) and dynamic Connection library files (. DLL).
Detailed syntax to use:
Command parameter drive path file name
Filever [/s] [/v] [/e] [/x] [/b] [/a] [/d] [[drive:] [path] [filename]]
The meaning of the parameter:
/s
Displays the files in the specified directory and all subdirectories under that directory.
/V
Lists all available version information for the file.
/e
Lists only the information for the executable file.
/x
For file names that are not in the 8.3 format (mainly long file names), they are displayed in short file names.
/b
Use the bare format (that is, the list of directories that do not display the file, only the file name is displayed).
/A
Specifies the file attributes that are not displayed.
/d
Specifies that the date and time properties of the file are not displayed.
Actual Validation Report:
This tool can only run in the state of the command line. Requires that the Windows2000 command console be opened in advance: Cmd.exe. This has been introduced before. You can display the corresponding information by entering the corresponding command in the prompt cursor in the Cmd.exe window. (Programming Entry Network)
Here is the case where I use the/s parameter of the command on my own machine to display the file information in the C:\Temp directory:
Microsoft Windows 5.00.2195 [Version]
(C) Copyright 1985-1998 Microsoft Corp.
C:\>filever/? Use/? To get help. The following are the Help information displayed:
Prints file version information.
filever [/S] [/V] [/E] [/X] [/B] [/A] [/D] [[drive:][path][filename]]
/S Displays files in specified directory and all subdirectories.
/V List verbose version information if available.
/E List executables only.
/X Displays short names generated for non-8dot3 file names.
/B Uses bare format (no dir listing).
/A Don't display file attributes.
/D Don't display file date and time.
C:\>filever /s c:\temp 使用/s参数显示出的 c:\temp之下的文件信息
c:\windows\temp
d---- - - - - - 0 07-08-2000 [temp]
c:\documents and settings\default user\local settings\temp
d---- - - - - - 0 12-15-2000 [temp]
c:\documents and settings\秋寒\local settings\temp
d---- - - - - - 0 12-15-2000 [temp]
The following are the results of using parameters:
The c:\>filever/e c:\windows/e parameter lists only executable files and DLL files.
--a--W16----1,409 04-29-2001 ksphonet.for
--a--w32i APP ENU 5.51.138.0 shp 306,688 10-29-1998 isuninst.exe
--a--w32i APP CHS 2.0.0.8118 shp 10,135 11-04-1998 _DETMP.4
--a--DOS----19,375 07-08-2000 Setver.exe
--a--w32i APP CHS 1.1.3.0 shp 415,744 10-09-1999 Unsetup.exe
-ra--w32i-enu 2.1.2.59 shp 2,058,752 08-26-1996
--a--w32i-enu 2.1.2.59 shp 169,472 07-15-2000
--a--w32i APP CHT 2.20.920.0 shp 299,008 04-28-1997 Unin0404.exe
--a--w32i----91,136 02-27-1997 Ulsetup.exe
--a--w32i APP ENU 5.4.1103.3 shp 7,536 05-03-2000 Loadqm.exe
--a--w32i APP CHS 5.0.2134.1 shp 72,464 01-10-2000 Regedit.exe
--a--W16 DLL CHS 1.7.0.0 shp 94,784 01-10-2000 Twain.dll
--a--w32i DLL CHS 1.7.0.0 shp 44,816 01-10-2000 Twain_32.dll
--a--W16 APP ENU 1.7.0.0 shp 49,680 01-10-2000 Twunk_16.exe
--a--w32i APP CHS 5.0.2159.1 dbg 191,760 01-10-2000 Winrep.exe
--a--w32i DLL ENU 5.0.2134.1 shp 20,240 01-10-2000 Vmmreg32.dll
--a--w32i APP CHS 5.0.2140.1 shp 50,960 01-10-2000 notepad.exe
--a--w32i APP CHS 5.0.2134.1 shp 35,600 01-10-2000 Taskman.exe
--a--w32i DLL ENU 4.0.4.2903 shp 5,392 01-10-2000 Delttsul.exe
C:\>
The meaning of this information is as follows:
Left-to-right: The first column, which shows a or RA, is a file attribute;
The second column of the file belongs to the operating system, divided into Win32i and dos and so on;
The third column indicates an executable file or DLL file;
The fourth column is unknown and no corresponding explanation is found;
Fifth column file size;
The sixth column of time;
Seventh column file name.