Hallo, ich will mir in einer Batchdatei die ich für Sicherungen nutze die Grösse der angeschlossenen festplatten anzeigen lassen. wie ich es mache geht aber nur als Admin. weiss jemand wie ich das anders machen kann. hier meine Batch:
for %%i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
if exist %%i:\ (
echo.
echo -------------
echo laufwerk %%i:--
echo -----------------------------------------------------------------
vol %%i: | find "ist"
echo -----------------------------------------------------------------
fsutil volume diskfree %%i:
echo -----------------------------------------------------------------
)
)
echo.
timeout /T -1 >> txt
for %%i in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
if exist %%i:\ (
echo.
echo -------------
echo laufwerk %%i:--
echo -----------------------------------------------------------------
vol %%i: | find "ist"
echo -----------------------------------------------------------------
fsutil volume diskfree %%i:
echo -----------------------------------------------------------------
)
)
echo.
timeout /T -1 >> txt