首页| 论坛| 消息
主题:黑客教程系列-简明批处理
回帖: 二.如何在批处理文件中使用参数
  批处理中可以使用参数,一般从1%到 9%这九个,当有多个参数时需要用shift来移动,这种情况并不多见,我们就不考虑它了。
  sample1:fomat.bat
  @echo off
  if "%1"=="a" format a:
  :format
  @format a:/q/u/auotset
  @echo please insert another disk to driver A.
  @pause
  @goto fomat
  这个例子用于连续地格式化几张软盘,所以用的时候需在dos窗口输入fomat.bat a,呵呵,好像有�
下一页 (1/59)

查看全部回帖(1)
«返回主帖