Skip to content

rasa/lsdsk

Repository files navigation

lsdsk - Version 1.6 - Oct 02 2011 Copyright (c) 2005-2011 Ross Smith II (http://smithii.com) All Rights Reserved


To build, unzip the shared*.zip file to lsdsk/../shared

Usage: lsdsk [options] Options: -t | --type Display type of drive -v | --volume Display volume name of drive -u | --used Display used space on drive -f | --free Display free space remaining on drive -s | --size Display total size of drive -m | --file_system Display file system type (NTFS, FAT32, etc.) -b | --bus Display device bus type (USB, 1394, etc.) -n | --name Display network share directory or subst'd directory -d | --domain Display domain and username for network shares -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 -a | --available Display available drive letters afterwards -A | --all Display both mounted and unmounted drives -V | --version Show version and copyright information and quit -? | --help Show this help message and quit

Examples:

C:>lsdsk Dr Type Bus 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 usb_stick 28M 221M 249M exFAT H: Removable ATA domain.com 0 42G 42G EXFS 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:\User\Example\Documents Y: Network sharename 123M 456M 579M NTFS \servername\sharename (username) Z: Network c$ 177M 782M 959M NTFS \servername\c$ (DOMAIN\user)


C:>lsdsk -na Dr Name


B: RAMDisk C: example_c D: example_d E: EXAMPLEVOL
F: EXAMPLE_F G: usb_stick I: D:\a\path\on\d M: C:\User\Example\Documents Y: \servername\sharename Z: \servername\c$

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


C:>set LSDSK=-na C:>lsdsk

(same as above)


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$