Tol!k

|
Posted: Tue Jun 26, 2012 23:03 Post subject: |
|
|
Code: | @echo off &setlocal enableextensions
for /f "skip=1 delims=" %%i in ('wmic LogicalDisk where "DriveType=2" get Caption^,MediaType') do (
for /f "delims=" %%j in ("%%i") do (for /f "tokens=1,2" %%i in ("%%j") do (
if "%%j"=="" %ComSpec% /C "ReMount.exe" -ReMount %%i B: -f
)
))
)
|
|
|