command line - gathering drive information

  • Thread starter Thread starter sjl
  • Start date Start date
S

sjl

how can I gather a listing of local drives on a W2K
system , command line, and post it to an aschii file,,,
comma delimited? thanks
 
sjl said:
how can I gather a listing of local drives on a W2K
system , command line, and post it to an aschii file,,,
comma delimited? thanks

Try this batch file:

@echo off
if exist c:\Disks.txt del c:\Disks.txt

for %%a in (C D E F G H I J K L M) do
for /F "tokens=8" %%b in ('chkdsk %%a: /L ^| find /i "The type of"') do
echo %%a:, %%b >> c:\Disks.txt
(This is one long line. It starts with "for" and ends with ".txt")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

gathering drive information - command line 3
Epic Games freebies 2
Discussion: Privacy 9
Convert text files to PDF 4
Excel MS Excel - MS Office 2010 0
commands from the command line 3
Watneys Red Barrel 4
Pitstop PC Matic 7

Back
Top