无忧启动论坛

标题: 谁能帮我做一个自动运行format c:/q的批处理文件? [打印本页]

作者: 网上游    时间: 2003-11-6 11:31
标题: 谁能帮我做一个自动运行format c:/q的批处理文件?
我想用98的启动盘自动运行format c:/q,就是不知道该怎么编辑AUTOEXEC和CONFIG这两个文件。这些命令是怎么样的?谁能帮我做一个?
作者: sikroz    时间: 2003-11-6 11:42
标题: 谁能帮我做一个自动运行format c:/q的批处理文件?
你在dos提示符里面输入下面命令即可 (最后一行是CTRL+Z)
copy con AUTOEXEC.bat
format c:/q
^Z

作者: Jnwei1202    时间: 2003-11-6 11:45
标题: 谁能帮我做一个自动运行format c:/q的批处理文件?
FORMAT /AUTOTEST 自动完成格式化过程。
FORMAT /BACKUP 自动完成格式化过程,并提示输入卷标。
FORMAT /SELECT 只在磁盘上备份系统区数据,相当于MIRROR程序。
FORMAT /SELECT /U 将引导区和文件分配表用F6H填之。
FORMAT /Z:n 设置FAT32分区上的簇大小。
作者: sikroz    时间: 2003-11-6 11:48
标题: 谁能帮我做一个自动运行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.

作者: sak47    时间: 2003-11-6 12:15
标题: 谁能帮我做一个自动运行format c:/q的批处理文件?
format c:/q /autotest

作者: 网上游    时间: 2003-11-6 18:30
标题: 谁能帮我做一个自动运行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

作者: smileLZG    时间: 2003-11-6 18:41
标题: 谁能帮我做一个自动运行format c:/q的批处理文件?
毛用!不如用他原机克隆好的98恢复好!还免了format!和驱动的安装!




欢迎光临 无忧启动论坛 (http://bbs.c3.wuyou.net/) Powered by Discuz! X3.3