发布网友 发布时间:2024-10-24 07:44
共2个回答
热心网友 时间:2024-11-17 04:15
@echo off&setlocal enabledelayedexpansion
if exist F:\ (
rem 隐藏
mountvol F: /d
pause&exit
) else (
for /f %%a in ('mountvol /l^|findstr ".*"') do (
set "str=%%a"
if "!str:~,1!" equ "*" (goto show)
set "volume=%%a"
)
)
:show
rem 显示
mountvol F: %volume%
pause
热心网友 时间:2024-11-17 04:16
你直接隐藏.文件不就得了