无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 2356|回复: 6
打印 上一主题 下一主题

谁能帮我做一个自动运行format c:/q的批处理文件?

[复制链接]
跳转到指定楼层
1#
发表于 2003-11-6 11:31:59 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我想用98的启动盘自动运行format c:/q,就是不知道该怎么编辑AUTOEXEC和CONFIG这两个文件。这些命令是怎么样的?谁能帮我做一个?
2#
发表于 2003-11-6 11:42:11 | 只看该作者

谁能帮我做一个自动运行format c:/q的批处理文件?

你在dos提示符里面输入下面命令即可 (最后一行是CTRL+Z)
copy con AUTOEXEC.bat
format c:/q
^Z
回复

使用道具 举报

3#
发表于 2003-11-6 11:45:56 | 只看该作者

谁能帮我做一个自动运行format c:/q的批处理文件?

FORMAT /AUTOTEST 自动完成格式化过程。
FORMAT /BACKUP 自动完成格式化过程,并提示输入卷标。
FORMAT /SELECT 只在磁盘上备份系统区数据,相当于MIRROR程序。
FORMAT /SELECT /U 将引导区和文件分配表用F6H填之。
FORMAT /Z:n 设置FAT32分区上的簇大小。
回复

使用道具 举报

4#
发表于 2003-11-6 11:48:05 | 只看该作者

谁能帮我做一个自动运行format c:/q的批处理文件?

FORMAT volume [/FS:file-system] [/V:label] [/Q] [/A:size] [/C] [/X]
FORMAT volume [/V:label] [/Q] [/F:size]
FORMAT volume [/V:label] [/Q] [/T:tracks /N:sectors]
FORMAT volume [/V:label] [/Q]
FORMAT volume [/Q]
  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.
回复

使用道具 举报

5#
发表于 2003-11-6 12:15:45 | 只看该作者

谁能帮我做一个自动运行format c:/q的批处理文件?

format c:/q /autotest
回复

使用道具 举报

6#
 楼主| 发表于 2003-11-6 18:30:29 | 只看该作者

谁能帮我做一个自动运行format c:/q的批处理文件?

[UploadFile=2_13099_6.jpg][这个贴子最后由网上游在 2003/11/06 07:26pm 第 1 次编辑]

下面是我做的AUTOEXEC.BAT文件的内容:我已经加好了,不是在最后一行,是在安装98(me)的命令之前。但现在还有一个问题,在安装98(me)的命令后面加什么参数才能在图中所示的时候直接进入安装而不用按“回车”确认?
@ECHO OFF
path=c:\windows;c:\windows\command
\hibinv.exe
call \checksr.bat
IF "%config%"=="QUICK" GOTO QUICK
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
cls
call setramd.bat %LglDrv%
set temp=c:\
set tmp=c:\
path=%RAMD%:\;a:\;%path%;%CDROM%:\
copy command.com %RAMD%:\ > NUL
set comspec=%RAMD%:\command.com
copy extract.exe %RAMD%:\ > NUL
copy readme.txt %RAMD%:\ > NUL
:ERROR
IF EXIST ebd.cab GOTO EXT
echo Please insert Windows Millennium Edition Startup Disk 2
echo.
pause
GOTO ERROR
:EXT
%RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL
echo The diagnostic tools were successfully loaded to drive %RAMD%.
echo.
IF "%config%"=="NOCD" GOTO QUIT
IF "%config%"=="HELP" GOTO HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
::If MSCDEX doesn't find a drive...
IF ERRORLEVEL 1 SET CDPROB=1
::
GOTO QUIT
:HELP
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:%CDROM%
::If MSCDEX doesn't find a drive...
IF ERRORLEVEL 1 SET CDPROB=1
cls
call help.bat
::
GOTO QUIT
:QUIT
call fixit.bat
rem clean up environment variables
format c:/q /autotest
set CDPROB=
%CDROM%:\winme\setup.exe
set CDROM=
set LglDrv=
GOTO QUICK
:QUICK
回复

使用道具 举报

7#
发表于 2003-11-6 18:41:54 | 只看该作者

谁能帮我做一个自动运行format c:/q的批处理文件?

毛用!不如用他原机克隆好的98恢复好!还免了format!和驱动的安装!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-6-19 01:58

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表