China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 11:26
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Two batch processing issues, one about CD-ROM auto-run, and one about View 1,899 Replies 5
Original Poster Posted 2004-12-09 00:00 ·  中国 广东 广州 电信
初级用户
Credits 133
Posts 10
Joined 2004-11-29 00:00
21-year member
UID 34166
Gender Male
Status Offline
First, talk about format. I posted a while ago that format has an automatic formatting parameter called autotest, but I couldn't run it in actual operation. I don't know why? The command is like this, "format C:/q/u/autotest", and it will prompt that autotest is an invalid parameter. I don't know why? The operating system is win2000 + sp4.

The second question, I have such an idea. Burn a CD, put many software in it, write a batch command, and let the CD run to install automatically. Can batch processing do this? Do the experts have relevant materials on this, share with the novices, thank you.
Floor 2 Posted 2004-12-09 00:00 ·  中国 广东 广州 电信
初级用户
Credits 133
Posts 10
Joined 2004-11-29 00:00
21-year member
UID 34166
Gender Male
Status Offline
The picture was posted, but I don't know why it didn't appear. Here is the address: http://photoimg7.qq.com/cgi-bin/load_pic?verify=2lXYiHZbHFi%2B5BuBvwDSwA%3D%3D
Floor 3 Posted 2004-12-10 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
1. Regarding the hidden parameter /autotest of Format, this may be for DOS systems prior to DOS 7.10. The format in Windows 2000 may no longer support this parameter, and how could you format the C drive in Windows 2000?
2. The idea of software integrated installation discs has long been realized by someone. There are many such software, for example, AutoIt or the software integrated installation manager written by yanghaijun in the JUJUMAO forum. The URL of the JUJUMAO forum: http://www.jujumao.com
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 4 Posted 2004-12-10 00:00 ·  中国 广东 广州 电信
初级用户
Credits 133
Posts 10
Joined 2004-11-29 00:00
21-year member
UID 34166
Gender Male
Status Offline
Thanks to the expert for guidance. Then, may I ask, is there a parameter for automatic formatting under win2000/xp?
Floor 5 Posted 2004-12-11 00:00 ·  中国 河北 石家庄 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
I found the following parameters from format.com in Windows 2003: /? /fs:* /t:* /n:* /8 /4 /1 /a:256k /a:128k /a:64k /a:32k /a:16k /a:8192 /a:4096 /a:2048 /a:1024 /a:512 /f:20.8MB /f:20.8M /f:20.8 /f:2.88MB /f:2.88M /f:2.88 /f:2880KB /f:2880K /f:2880 /f:1.44MB /f:1.44M /f:1.44 /f:1440KB /f:1440K /f:1440 /f:1MB /f:1M /f:1 /f:1.25MB /f:1.25M /f:1.25 /f:1250KB /f:1250K /f:1250 /f:360KB /f:360K /f:360 /f:320KB /f:320K /f:320 /f:256KB /f:256K /f:256 /f:180KB /f:180K /f:180 /f:160KB /f:160K /f:160 /f:1.23MB /f:1.23M /f:1.23 /f:1.2MB /f:1.2M /f:1.2 /f:1232KB /f:1232K /f:1232 /f:1200KB /f:1200K /f:1200 /f:720KB /f:720K /f:720 /f:640KB /f:640K /f:640 /x /y /backup /v:* /v:"" /force /c /q /u /v Among them, there are several hidden parameters, such as: /y /force /backup /u, you have to try what these hidden parameters do, maybe one of them is the automatic parameter. I can't test because I don't have a test environment. The official command syntax of Format: Format a disk for use with Windows. 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 file system type (FAT, FAT32, or NTFS).
/V:label Specifies the volume label.
/Q Performs a quick format.
/C Applies only to NTFS: By default, files created on the new volume are compressed.
/X Forces the volume to dismount first if necessary. At that time, all open handles to the volume are no longer valid.
/A:size Substitutes the default allocation unit size. It is strongly recommended that you use the default setting in general.
NTFS supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K.
FAT supports 512, 1024, 2048, 4096, 8192, 16K, 32K, 64k, (128k, 256k for sectors larger than 512 bytes).
FAT32 supports 512, 1024, 2048, 4096, 8192, 16k, 32k, 64k, (128k, 256k for sectors larger than 512 bytes). Note that the FAT and FAT32 file systems have the following restrictions on the number of clusters on the volume: FAT: Number of clusters <= 65526
FAT32: 65526 < Number of clusters < 4177918 If it is determined that the specified cluster size cannot meet the above requirements, the formatting will stop immediately. NTFS compression does not support allocation units larger than 4096. /F:size Specifies the size of the floppy disk to be formatted (1.44)
/T:tracks Specifies the number of tracks per side for the disk.
/N:sectors Specifies the number of sectors per track.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Floor 6 Posted 2004-12-11 00:00 ·  中国 广东 广州 电信
初级用户
Credits 133
Posts 10
Joined 2004-11-29 00:00
21-year member
UID 34166
Gender Male
Status Offline
Thanks for the expert's guidance.
Forum Jump: