中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-08-07 16:18
48,041 主题排行 / 350,128 发帖 / 今日 3 篇 / 48,252 会员排行
DOS批处理 & 脚本技术(批处理室) » 怎样让format命令在XP下起作用
可打印版本  696 / 4
第1楼 beeny 发表于 2008-03-04 20:42
初级用户 发帖 49 积分 136
怎样让format命令在XP下起作用
bat文件里的内容是这样的:
format d: /q/s/y
但是双击以后并没有格式D盘是何原因?
第2楼 HAT 发表于 2008-03-04 21:11
版主 发帖 5,017 积分 9,023
/s和/y是什么意思?

Microsoft Windows XP
(C) Copyright 1985-2001 Microsoft Corp.

C:\>format /?
Formats a disk for use with Windows XP.

FORMAT volume
FORMAT volume
FORMAT volume
FORMAT volume
FORMAT volume

volume Specifies the drive letter (followed by a colon),
mount point, or volume name.
/FS:filesystem Specifies the type of the file system (FAT, FAT32, or NTFS).
/V:label Specifies the volume label.
/Q Performs a quick format.
/C NTFS only: Files created on the new volume will be compressed
by default.
/X Forces the volume to dismount first if necessary. All opened
handles to the volume would no longer be valid.
/A:size Overrides the default allocation unit size. Default settings
are strongly recommended for general use.
NTFS supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K.
FAT supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K,
(128K, 256K for sector size > 512 bytes).
FAT32 supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K,
(128K, 256K for sector size > 512 bytes).

Note that the FAT and FAT32 files systems impose the
following restrictions on the number of clusters on a volume:

FAT: Number of clusters <= 65526
FAT32: 65526 < Number of clusters < 4177918

Format will immediately stop processing if it decides that
the above requirements cannot be met using the specified
cluster size.

NTFS compression is not supported for allocation unit sizes
above 4096.

/F:size Specifies the size of the floppy disk to format (1.44)
/T:tracks Specifies the number of tracks per disk side.
/N:sectors Specifies the number of sectors per track.
第3楼 beeny 发表于 2008-03-04 21:51
初级用户 发帖 49 积分 136
哦是我给搞错了!我记得是WIN98启动时格盘就是用的/Q/S
第4楼 wdmzjhk 发表于 2008-03-04 21:56
初级用户 发帖 28 积分 61
@echo off
format /q/u/y d:
pause
这才是经典。
第5楼 beeny 发表于 2008-03-05 14:19
初级用户 发帖 49 积分 136
先试下再给分
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023