Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

Find Drive By Label (GPL)

"FindDriveByLabel.bat" is a batch file that finds the drive with the specified label. If it is able to find a drive with the label, that drive is returned. If it is unable to find a drive with the given label, it returns nothing. This batch script will return the first drive with the specified label.

"FindDriveByLabel.bat" takes advantage of the following batch files, which are also available on this site. So to use the this batch file, you will need to download the following batch files if you don't already have them.

DriveLabel.bat
SetNumberOfArguments.bat
SetVariableToOutput.bat

"FindDriveByLabel.bat" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.

Usage

FindDriveByLabel.bat "label"

Examples

  C:\Users\Medusa>FindDriveByLabel Centaur
C:

C:\Users\Medusa>FindDriveByLabel Hydra
F:

C:\Users\Medusa>FindDriveByLabel Devil

Attached File: FindDriveByLabel.bat (857 B)

Chieh Cheng
Mon, 22 Mar 2010 05:38:00 +0000

A bug prevented the script from working when the label is surrounded by double-quotes. The attached batch script fixes the problem.

Attached File: 1 - FindDriveByLabel.bat (858 B)

Chieh Cheng
Tue, 10 May 2011 07:35:04 +0000

Update FindDriveByLabel.bat to handle DriveLabel.bat error messages better.

Attached File: 2 - FindDriveByLabel.bat (865 B)

Chieh Cheng
Mon, 17 Jun 2019 01:47:19 -0700

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

Title: Drive Label (GPL)
Weblog: Cynosure.X International
Excerpt: "DriveLabel.bat" is a batch file that returns the label given a drive letter. "DriveLetter.bat" takes advantage of the following batch files, which are also available on this site. So to use the this batch file, you will need to download the following batch files if you don't already have them. . . .
Tracked: Mon, 22 Mar 2010 05:38:52 +0000

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 8 + 10?
Click button only once, please!

Messages, files, and images copyright by respective owners.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

105 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.