OK,首先谢谢各位的指导,不知道有没有前辈做过这方面的总结,有的话,本帖
就权当补充吧,也算为如同我一般的菜鸟们指引一下,总结如:
(以下命令运行于NT系统)
1、
fsutil(必须作为管理员或管理员组的成员登录才能使用): (见3楼)
如:for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims=:" %%a in ('
fsutil fsinfo volumeinfo %%i\ ^| find "文件系统名"') do echo %%i %%b
)
2、
wmic(第一次使用需注册): (见9楼)
如:for /f "skip=1 tokens=1,2" %%i in ('
"wmic logicaldisk get Caption,FileSystem"') do echo %%i %%j
3、
chkntfs: (见12、20楼)
如:for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims= " %%a in (
'chkntfs %%i ^|find "文件系统的类型"') do echo %%i %%b
)
4、
md或
cacls等工具: (见14楼)
可判断FAT或者NTFS文件系统,但似乎无法确认是否FAT32或FAT16及其他。
(以下命令运行于DOS系统)
1、
00000055 33 32
先获取 DBR,再看偏移55处两字节是不是 0x33 0x32
(
http://www.cn-dos.net/forum/viewthread.php?tid=21845&fpage=1&highlight=%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F —— GOTOmsdos大哥如是说,本菜鸟未测试)
(以下命令需要第三方工具)
1、
omnifs(Ghost企业版中附带的工具,目前版本为v11.0.01502) (见11、16楼)
另外,gmy斑竹所说的GDISK据在下所知是硬盘分区工具,可以判断文件系统类
型吗?使用过的兄弟请说明,未确认之前不敢记上,怕误人子弟了,请见谅。
如果还有别的方法,请继续留贴。
Last edited by qinbuer on 2007-7-12 at 01:07 AM ]
OK, first of all, thank you all for your guidance. I don't know if any senior has made a summary of this aspect. If there is, this post will be regarded as a supplement, which can also guide rookies like me. The summary is as follows:
(The following commands run on NT systems)
1.
fsutil (must be logged in as a member of the administrator or administrator group to use): (See floor 3)
For example: for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims=:" %%a in ('
fsutil fsinfo volumeinfo %%i\ ^| find "File System Name"') do echo %%i %%b
)
2.
wmic (needs to be registered the first time used): (See floor 9)
For example: for /f "skip=1 tokens=1,2" %%i in ('
"wmic logicaldisk get Caption,FileSystem"') do echo %%i %%j
3.
chkntfs: (See floors 12, 20)
For example: for /f "skip=1" %%i in ('wmic logicaldisk where "drivetype=3" get caption') do (
for /f "tokens=1,2 delims= " %%a in (
'chkntfs %%i ^|find "Type of File System"') do echo %%i %%b
)
4. Tools like
md or
cacls: (See floor 14)
Can judge FAT or NTFS file systems, but it seems unable to confirm whether it is FAT32 or FAT16 and others.
(The following commands run on DOS systems)
1.
00000055 33 32
First get the DBR, then see if the two bytes at offset 55 are 0x33 0x32
(
http://www.cn-dos.net/forum/viewthread.php?tid=21845&fpage=1&highlight=%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F —— Brother GOTOmsdos said so, this rookie has not tested)
(The following commands require third-party tools)
1.
omnifs (a tool attached in the Ghost enterprise version, the current version is v11.0.01502) (See floors 11, 16)
In addition, the GDISK mentioned by moderator gmy is known to be a hard disk partitioning tool. Can it judge the file system type? Brothers who have used it please explain. I dare not write it down before confirming it, for fear of misleading others. Please forgive me.
If there are other methods, please continue to leave a post.
Last edited by qinbuer on 2007-7-12 at 01:07 AM ]