我这里也有一个
- @echo off
- title 磁盘盘符更换程序
- color 1a
- cls&echo.
- set /p disk= 请输入要更改的盘:
- set disk=%disk:~0,1%
- echo.
- set /p x-disk= 请输入更改后的盘:
- set x-disk=%x-disk:~0,1%
- echo select volume=%disk%:>%temp%\list.txt
- echo remove>>%temp%\list.txt
- echo assign letter=%x-disk%:>>%temp%\list.txt
- echo exit>>%temp%\list.txt
- diskpart /s %temp%\list.txt
复制代码
执行起来慢多了! |