Skip to content

rasa/lsdsk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lsdsk - Version 1.3 - Jul 19 2006
Copyright (c) 2005-2006 Ross Smith II (http://smithii.com) All Rights Reserved

------------------------------------------------------------------------------

Usage: lsdsk [options]
Options:
-m | --file_system Display file system format
-f | --free        Display free space remaining on drive
-n | --name        Display name/description of drive
-s | --size        Display total size of drive
-t | --type        Display type of drive
-u | --used        Display used space on drive
-d | --domain      Display domain and username for network shares
-v | --volume      Display volume name of drive
-e | --exclude d:  Exclude drive d:
-i | --include d:  Include drive d: (and exclude all others)
-k | --kilobyte    Use 1024 for a kilobyte (K) instead of 1000
-e | --available   Display available drive letters (default is off)
-V | --version     Show version and copyright information and quit
-? | --help        Show this help message and quit

------------------------------------------------------------------------------

Examples:

C:\>lsdsk
Dr Type      Volume          Used Free Size FS    Name
-- --------- --------------- ---- ---- ---- ----- -----------------------------
B: RAMDisk   RAMDisk         3.0K 1.0G 1.0G FAT   \Device\RAMDisk
C: Fixed     example_c       7.1G 439M 7.1G NTFS  \Device\HarddiskVolume1
D: Fixed     example_d        45G 2.1G  47G NTFS  \Device\HarddiskVolume3
E: CD-ROM    EXAMPLEVOL      535M   0  535M CDFS
F: Fixed     EXAMPLE_F       288K 131M 131M FAT32 \Device\HarddiskVolume2
G: Removable usb_stick        28M 221M 249M NTFS
I: Subst     example_d        45G 2.1G  47G NTFS  D:\a\path\on\d
M: Subst     example_c       7.1G 439M 7.1G NTFS  C:\Documents and Settings\ex\My Documents
Y: Network   sharename       123M 456M 579M NTFS  \\servername\sharename (username)
Z: Network   c$              177M 782M 959M NTFS  \\servername\c$ (DOMAIN\user)

C:\>lsdsk -tna -e b
Dr Type      Name
-- --------- -----------------------------
C: Fixed     \Device\HarddiskVolume1
D: Fixed     \Device\HarddiskVolume3
E: CD-ROM
F: Fixed     \Device\HarddiskVolume2
G: Removable
I: Subst     D:\a\path\on\d
M: Subst     C:\Documents and Settings\ex\My Documents
Y: Network   \\servername\sharename (username)
Z: Network   \\servername\c$ (DOMAIN\user)

Free: A: H: J: K: L: N: O: P: Q: R: S: T: U: V: W: X:

------------------------------------------------------------------------------

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

$Id$