Windows Develop Bookmark and Share   
 index > Windows Forms General > in vb.net windows program how find new attach pen drive
 

in vb.net windows program how find new attach pen drive

Dear all
1)in vb.net 2005 windows program how find new attach pen drive.
2)copy one folder from pen drive to harddisk drive in vb.net 2005
3)folder(pen drive)only read throgh vb.net 2005 windows program directly pen drive data can't read.

please help me.how it is possible.

thanks in advance

Regards
Irvendeep


irvendeep
irvendeep  Tuesday, September 15, 2009 12:20 PM

Hi irvendeep,

You can use WMI to manage the USB devices. These are some articles about WMI:
http://karlagius.com/2009/03/04/keeping-track-of-usb-devices-using-wmi/
http://www.codeproject.com/KB/dotnet/WMICodeCreator_Demo.aspx

These are some threads about WMI:
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/bcf4a4d6-fb8a-4e6d-b9b8-401a136d80d0
http://social.microsoft.com/Forums/en-US/whatforum/thread/da18a91c-05c2-44bc-b440-6520508b779a
http://social.msdn.microsoft.com/Forums/en-US/clr/thread/0ef37f2b-ec35-45a8-a19d-f558118b5561
http://www.longhorncorner.com/Forums/ShowMessages.aspx?ThreadID=64209

You can get more information about WMI from:
http://msdn.microsoft.com/en-us/library/aa394582(VS.85).aspx.

Some code is written in C#, you can convert to VB.Net via the link below:
http://www.developerfusion.com/tools/convert/csharp-to-vb/

This is a free source library about USB in .Net:
http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx

Let me know if this helps or not.
Aland Li


This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.



Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Monday, September 21, 2009 3:29 AM

Hi irvendeep,

You can use WMI to manage the USB devices. These are some articles about WMI:
http://karlagius.com/2009/03/04/keeping-track-of-usb-devices-using-wmi/
http://www.codeproject.com/KB/dotnet/WMICodeCreator_Demo.aspx

These are some threads about WMI:
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/bcf4a4d6-fb8a-4e6d-b9b8-401a136d80d0
http://social.microsoft.com/Forums/en-US/whatforum/thread/da18a91c-05c2-44bc-b440-6520508b779a
http://social.msdn.microsoft.com/Forums/en-US/clr/thread/0ef37f2b-ec35-45a8-a19d-f558118b5561
http://www.longhorncorner.com/Forums/ShowMessages.aspx?ThreadID=64209

You can get more information about WMI from:
http://msdn.microsoft.com/en-us/library/aa394582(VS.85).aspx.

Some code is written in C#, you can convert to VB.Net via the link below:
http://www.developerfusion.com/tools/convert/csharp-to-vb/

This is a free source library about USB in .Net:
http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx

Let me know if this helps or not.
Aland Li


This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.



Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Monday, September 21, 2009 3:29 AM

You can use google to search for other answers

Custom Search

More Threads

• Format
• Drag Drop Custom Control
• ComboBox Question
• Logical Doubt,(logical regarding calculation),please
• Problems with RichTextBox
• How to add plug in to WebBrowser Control
• .NET Framework and Windows Profiles
• the simplest question ever....
• scrollbars and the AutoScroll property
• Handling The Application Key Down Problem