- @echo off
- set str=c d e f g h i j k l m n o p q r s t u v w x y z
- echo ==================
- echo 当前硬盘的分区有:
- echo ==================
- for %%i in (%str%) do if exist %%i: echo %%i:
- vol c:
- vol e:
- vol f:
- vol g:
- label c: /mp 123&vol c:
- label e: /mp 456&vol e:
- label f: /mp 789&vol f:
- label g: /mp *-+&vol g:
- echo ..................
- echo 卷改了不会改序列号
- echo ..................
- pause
复制代码
|