<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Comments on snippet: 'Get list of drive letters and labels'</title>
<link>http://snipplr.com</link>
<description>Snipplr comments feed'</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 13:44:37 GMT</pubDate>
<item>
<title>erniedobson said on 3/4/10</title>
<link>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</link>
<description><![CDATA[ This fails for Winbond devices assigned a drive letter but no media is loaded. 
Message Windows - No Disk Excepetion 
Processing messaage ....................................
Cancel TryAgain Continue

To find a better version search for list drives letters or volume details ]]></description>
<pubDate>Thu, 04 Mar 2010 06:37:32 GMT</pubDate>
<guid>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</guid>
</item>
<item>
<title>erniedobsonmaycroftnet said on 3/3/10</title>
<link>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</link>
<description><![CDATA[ @echo off

rem Vol  information is displayed if called with an argument, otherwise the drive letters are displayed

set INFO=%1

call :Drive 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
set INFO=
goto :EOF

:Drive
vol %1: > nul 2>nul
If  ERRORLEVEL 1 goto Next

if  not "X"%INFO%=="X" (vol %1:) else echo %1:
:Next
shift
if NOT "X"%1=="X" goto :Drive ]]></description>
<pubDate>Wed, 03 Mar 2010 09:59:20 GMT</pubDate>
<guid>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</guid>
</item>
<item>
<title>erniedobsonmaycroftnet said on 3/3/10</title>
<link>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</link>
<description><![CDATA[ @echo off

rem Vol  information is displayed if called with an argument, otherwise the drive letters are displayed

set INFO=%1

call :Drive 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
set INFO=
goto :EOF

:Drive
vol %1: > nul 2>nul
If  ERRORLEVEL 1 goto Next

if  not "X"%INFO%=="X" (vol %1:) else echo %1:
:Next
shift
if NOT "X"%1=="X" goto :Drive ]]></description>
<pubDate>Wed, 03 Mar 2010 09:58:04 GMT</pubDate>
<guid>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</guid>
</item>
<item>
<title>erniedobsonmaycroftnet said on 3/3/10</title>
<link>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</link>
<description><![CDATA[ @echo off

rem Vol  information is displayed if called with an argument, otherwise the drive letters are displayed

set INFO=%1

call :Drive 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
set INFO=
goto :EOF

:Drive
vol %1: > nul 2>nul
If  ERRORLEVEL 1 goto Next

if  not "X"%INFO%=="X" (vol %1:) else echo %1:
:Next
shift
if NOT "X"%1=="X" goto :Drive ]]></description>
<pubDate>Wed, 03 Mar 2010 09:57:03 GMT</pubDate>
<guid>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</guid>
</item>
<item>
<title>erniedobsonmaycroftnet said on 3/3/10</title>
<link>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</link>
<description><![CDATA[ This fails for Winbond devices assigned a drive letter but no media is loaded. 
Message Windows - No Disk
Excpetion Processing messaage ....................................

Cancel TryAgain Continue
Using the original idear i have created on the will display drive lettters or Vol information
@echo off
set INFO=%1

call :Drive 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

goto :EOF

:Drive
vol %1: > nul 2>nul
If  ERRORLEVEL 1 goto Next

if  not "X"%INFO%=="X" (vol %1:) else echo %1:
:Next
shift
if NOT "X"%1=="X" goto :Drive ]]></description>
<pubDate>Wed, 03 Mar 2010 09:44:05 GMT</pubDate>
<guid>http://snipplr.com/view/19276/get-list-of-drive-letters-and-labels/</guid>
</item>
</channel>
</rss>