anmelder
Goto Top

Ausgabe von wmic logicaldisk in Variable speichern

Ich versuche in etwa folgendes:

set rr="wmic logicaldisk  where caption="d:" get filesystem"  

wmic logicaldisk where caption="d:" get filesystem zeigt mir das Dateisystem eines Laufwerkes welches in einer Variable gespeichert werden soll

Content-Key: 352590

Url: https://administrator.de/contentid/352590

Printed on: April 25, 2024 at 00:04 o'clock

Member: rubberman
Solution rubberman Oct 23, 2017 at 17:13:05 (UTC)
Goto Top
Funktioniert wie immer mit FOR /F
for /f "tokens=1* delims==" %%i in ('wmic logicaldisk where "caption='d:'" get filesystem /value') do for /f "delims=" %%k in ("%%j") do set "rr=%%k"  
Steffen