别再转代码了,占用网站资源,还影响观看.
仅针对G盘:- @echo off
- if exist g:\. (
- for /f "tokens=*" %%a in ('mountvol g: /l') do (echo %%a>"%~dp0.\Vol_g.ini"&&mountvol g: /d)
- ) else (
- if exist "%~dp0.\Vol_g.ini" (
- set/p g_vol=<"%~dp0.\Vol_g.ini"
- call mountvol g: %%g_vol%%
- ) else (
- for /f %%i in ('mountvol^|findstr "\\\\\?\\Volume :\\"') do (mountvol g: %%i2>nul&&exit /b)
- )
- )
复制代码 怕论坛丢失字符故上传文件: |