For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > March 2006 > IsHardDrive(?)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author IsHardDrive(?)
John Brown

2006-03-28, 6:56 pm

How can I tell what type of drive the user has selected in a
CommonDialogue.ShowSave box? (Hard Drive, Removable Drive, Zip Drive, CD,
Jump/Flash drive, shared drive)

In my application I have a routine that allows the user to back-up their
data files to a drive/path selected via a CommonDialogue.ShowSave box.
Recently one of my users hard drives failed and we discovered that the jump
drive was empty. The user had faithfully backed up daily, but had selected
the default drive/path (App.Path). I have to use the CommonDialogue box for
versitility. They might want to back up to a network drive, secondary hard
drive, zip drive, or a jump/flash drive. I have no way of knowing beforhand
what designation a jump drive might have. It would be useful to inform the
user that they have chosen to back up to a hard drive and backup is usually
done to a removable jump/zip/flash drive.

--
Thanks for your help, John Brown
Veign

2006-03-28, 6:56 pm

GetDriveType: Enumerate and Identify Available System Drives
http://vbnet.mvps.org/code/disk/drivetype.htm


--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
Veign's Blog
http://www.veign.com/blog
--


"John Brown" <JohnBrown@discussions.microsoft.com> wrote in message
news:ECB3370A-140F-491F-B145-FD63E51BFAE1@microsoft.com...
> How can I tell what type of drive the user has selected in a
> CommonDialogue.ShowSave box? (Hard Drive, Removable Drive, Zip Drive, CD,
> Jump/Flash drive, shared drive)
>
> In my application I have a routine that allows the user to back-up their
> data files to a drive/path selected via a CommonDialogue.ShowSave box.
> Recently one of my users hard drives failed and we discovered that the
> jump
> drive was empty. The user had faithfully backed up daily, but had selected
> the default drive/path (App.Path). I have to use the CommonDialogue box
> for
> versitility. They might want to back up to a network drive, secondary hard
> drive, zip drive, or a jump/flash drive. I have no way of knowing
> beforhand
> what designation a jump drive might have. It would be useful to inform the
> user that they have chosen to back up to a hard drive and backup is
> usually
> done to a removable jump/zip/flash drive.
>
> --
> Thanks for your help, John Brown



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com