中国DOS联盟论坛

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-10 15:57
47,811 topics / 349,897 posts / today 0 new / 48,255 members
DOS批处理 & 脚本技术(批处理室) » Extract file version information (version number)
Printable Version  3,559 / 18
Floor1 mandyonly Posted 2007-06-07 16:08
初级用户 Posts 9 Credits 28
Please ask the user to clarify the specific requirements or provide more detailed context for an accurate translation. The current text seems to be in Chinese and the request is to translate it, but more clarity is needed. If we assume a basic translation of the main question: "May I ask: How to extract the file names and version numbers in the windows folder using the command line and save them to a txt file? Most of the files are in .exe, .dll format. Thanks. It doesn't have to be batch processing, other languages are also okay, can you give an example? Thanks. [ Last edited by mandyonly on 2007-6-7 at 04:27 PM ]" But this might not be fully accurate without a better understanding of the exact context. However, following the instructions strictly, this is the attempted translation. But perhaps there's a need for more precision. Let's try again:

"May I ask: How to extract the file names and version numbers in the Windows folder using the command line and save them to a text file? Most files are in .exe, .dll format. Thanks. It doesn't have to be batch processing; other languages are also acceptable. Can you provide an example? Thanks. [ Last edited by mandyonly on 2007-6-7 at 04:27 PM ]"
Floor2 zh159 Posted 2007-06-07 16:19
金牌会员 Posts 1,467 Credits 3,687
It seems that it's unlikely to extract the version number with batch processing. I tried using VBS before, but I've forgotten it now.
Floor3 yong119 Posted 2007-06-07 16:41
新手上路 Posts 10 Credits 19
WMIC datafile where "Name='c:\\windows\\explorer.exe'" get Manufacturer,Version,Filename
Floor4 mandyonly Posted 2007-06-07 16:47
初级用户 Posts 9 Credits 28
What language is this written in?
Floor5 wudixin96 Posted 2007-06-07 17:05
银牌会员 Posts 931 Credits 1,928
wmic datafile where "Name='c:\\windows\\explorer.exe'" get Manufacturer,Version,Filename
Is it P?
Floor6 zh159 Posted 2007-06-07 17:12
金牌会员 Posts 1,467 Credits 3,687
Floor7 mandyonly Posted 2007-06-07 17:13
初级用户 Posts 9 Credits 28
If the file is multiple and exists in a folder, and I want to extract all the file names and versions in the folder instead of a specific one as mentioned in the 5th floor, how to do it?
Floor8 HAT Posted 2007-06-07 17:33
版主 Posts 5,017 Credits 9,023
```
@echo off
set Target=C:\\test
cd %Target%
for %%i in (*.*) do (
rem echo %%i
wmic datafile where "Name='%Target%\\%%i'" get Manufacturer,Version,Filename
)
```
Floor9 mandyonly Posted 2007-06-07 18:02
初级用户 Posts 9 Credits 28
Thanks
Floor10 lxmxn Posted 2007-06-08 02:12
版主 Posts 4,938 Credits 11,386
```wmic /output:result.log datafile where "Path='\\windows\\system32\\' and Drive='C:' and (Extension='dll' or Extension='exe')" get Manufacturer,Version,Caption```

Running time may be a little longer, please be patient.
Floor11 zh159 Posted 2007-06-09 22:19
金牌会员 Posts 1,467 Credits 3,687
VBS, only extract "application" (exe) and "application extension" (dll) with version numbers


Extract all "application" (exe) and "application extension" (dll)


[ Last edited by zh159 on 2007-6-9 at 10:21 PM ]
Floor12 benteng302 Posted 2007-06-10 08:07
初级用户 Posts 41 Credits 88
Oh, good East Asia.
Floor13 wbshu Posted 2007-07-06 10:42
初级用户 Posts 13 Credits 25
Is it that complicated? The command "filever /v filename" can be used to get the version information of a file.
Floor14 lxmxn Posted 2007-07-06 10:46
版主 Posts 4,938 Credits 11,386
Is filever a third-party tool?
Floor15 zh159 Posted 2007-07-06 11:57
金牌会员 Posts 1,467 Credits 3,687
Originally posted by wbshu at 2007-7-6 10:42:
Is it that troublesome?
You can use the "filever /v filename" command to get the version information of a file.

C:\>filever/?
'filever' is not an internal or external command, nor is it a runnable program
or batch file.
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023