"Rich Pasco" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Dean Wells (MVP) wrote:
>
>>> Take a look at the post entitled 'Batch file to show Network
>>> drives',
>>> I believe you'll find relevant info. in there.
>>
>> Perhaps something like this depending on support for the binary of
>> course -
>>
>> fsutil fsinfo drives | findstr /i "F:" && echo Valid. || echo
>> Invalid.
>
> Thanks, Dean. Many of the solutions in that thread, including yours,
> require fsutil, which doesn't seem to be present on my Windows 2000
> system. Can I download it as an add-on, or is it limited to XP and
> newer?
>
> Learn about fsutil here
> http://technet2.microsoft.com/window...d059f1033.mspx
>
> Considering that I need to support Windows 2000, I may just stick with
> my original solution, which does work under Windows 2000.
>
> - Rich
Nod, fair comment, I confess my efforts regarding legacy-supportability
typically end at XP and 2K3.
Here's another hip-shot -
@echo off
set arg=%~1
set driveLETTER=%arg:~0,1%
if exist %driveLETTER::=%:\nul (
echo %driveLETTER::=%: is valid)
else (
echo %driveLETTER::=%: is invalid.
)
--
Dean Wells [MVP / Directory Services]
MSEtechnology
[[ Please respond to the Newsgroup only regarding posts ]]
R e m o v e t h e m a s k t o s e n d e m a i l