.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How do I get the "Device Instance Id" of USB flash drive?

Posted By:      Posted Date: September 03, 2010    Points: 0   Category :WPF
Hello, How do I get the "Device Instance Id" of USB flash drive? WPF C# code to accomplish this will be greatly appreciated. I'm trying again to get an answer to the above question.  It appears that some do not know what I mean by "Device Instance Id".  Here is how you find it on a computer with the XP operating system: If you go to it the wrong way you will not find it.  You have to follow these steps (on XP): 1) Make sure you have a USB flash drive inserted into one of the USB ports. 2) Click "Start" then right click "MyComputer" then click "Manage". 3) In the "Computer Management" window click "Device Manager". 4) In the right pane expand the "Disk drives". 5) Right click on "USB Flash Disk USB Device" (Will NOT be there if no USB Flash drive inserted). 6) Click "Properties". 7) Click the "Details" tab. 8) The drop down should already have "Device Instance Id" showing, if not, select it. 9) The contents of the text box below contain the information I want. Again, if you get to this window a different way, the "Details" tab may not appear. Again, if you do not have a USB flash drive plugged into your computer, the "USB Flash Disk USB Device" will not appear. This is what has been suggested before, but does not w

View Complete Post

More Related Resource Links

Flash player doesn't send cookies while requesting an aspx page



 I'm developing a web-site, that uses SWFUpload for multiple files upload to the server. Page, that uploades files, is accessable only to registered user. Authentication is done via web-forms (authentication mode="Forms" in Web.config). Flash uploades files to special web page - upload.aspx. In IE everything works great, but Flash player in non-IE browser (in Firefox, for example) does not send any cookies to upload.aspx. Because of it no sesion and no authentication information is available in this page.

 I can pass all the information, necessary for uploading, in GET-parameters, which upload.aspx recieve. But this is a serious security hole and I don't want to expose session information. I can pass session identifier in GET-request. But the question is the following: how can I restore session information from the session identifier? How can I make HttpContext.Current.User point to currently logged in user in this case?

Any help will be appreciated.

Word save file on SharePoint via mapped drive


Hi, I have a Document Library mapped to a drive letter. I am able to browse the drive through Windows Explorer. However when I try to save a document to the drive Word returns, 'Unable to connect to the Web server.' .  I have been unable to find any information regarding this error message. If I try to create a document in the Document Library through Windows Explorer and the mapped drive, I get a different error message: 'Unable to create the file 'New Microsoft Office Word Document.docx' There is no user session key for the specified logon session.' After I click OKand refresh the directory, a 0 KB New Microsoft Word Document.docx file has been created. When that file is opened, it is in Read-Only mode.


Windows Server 2003 R2
Webclient service started
Signed into the Microsoft Online Services Sign in Application
IE configured through the sign in application
site added to the trusted sites in IE

Thank you again for your input.

Why does .NET Framework require 841 MB hard drive space on C:

Just downloaded .NET Framework 4 from Microsoft website. Installation says it requires 841 MB space on my C: drive. Why so much? I am presuming that this is in addition to the space for the other versions of .net installed. This is not going to be installed without a very good reason for this much space required. Can anybody enlighten me on this? Any way to lighten the space requirement load?  

flash player

Hi does anybody know how to embed flash player(to play mp3 songs) in asp.net using c#.net. does flash player support all extensions(like .flv,.vlc.mp3). could anyone help me out.Thank youkranthi

Placeholder Until Flash Video Loads

 VWD 2008 Express.  Adobe Captivate 3.  Visual Basic. I have a page onto which a flash video loads.  The flash video was created in Adobe Captivate.  Usually the 665x335 area where the flash video object loads just shows as an empty 665x335 frame (with a little picture icon in the upper lefthand corner) for a few seconds until the flash video finishes loading.  Then the video appears and starts running.  It makes the page look unprofessional.  Does anyone have an idea how I could have a default image show in the 665x335 space until the video loads, then to have the video take over?  Perhaps the flash player has an event that fires when it finishes loading and initializing?  Below is the flash video object that is embedded in my page: <div style="width: 665px; height: 335px" class="clickarea"> <object id="OneDay" codebase="http://fpdownload.macro../media.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" data="../media/video/homepage/OneDayAlternate.swf" width="658" height="335"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="../media/video/hom

How to restore a database to the d drive

I have a 2008 database I need to restore, but my C drive is almost full.  How do I telll it to restore my database to the D drive?  

regasm 4.0 generates error for DLL on a mapped network drive

Calling regasm from .NET Framework 4.0 generates an error for a DLL that is on a mapped network share.  This occurs during our debug builds on developer machines (we actually call a utility that wraps around regasm to perform COM-based registration).  The error is: RegAsm : error RA0000 : Could not load file or assembly 'file:///m:\<file being regasmed>' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) I can work around this issue by modifying regasm.exe.config to include the loadFromRemoteSources element.  This seems like an annoying change for something that seems like a fairly common task. Is there some better way to enable this? Thanks, -Kevin

Autodelete log files on L: drive

Is there a way to automatically delete sharepoint logs on the server L: drive when space fills up?  I keep getting mom alerts on this drive.

VisualtTotals and group "others" drive me crazy!

Hi all, My problem can be modeled in ADVwork as follow: I’m trying to create a query that for each category member show the Top 2 Products members and member ‘other’ that sum the rest.   As far as I know Visualtotals is the function to be used but all my tests doesn’t works! Here below there is the code that for each category display ‘All’  value and Top 2 items.  I have to substitute ‘All’ value with ‘All Other’ (Visualtotals should do exactly this) Note: In my example Product and Category are dimension attributes not related in a hierarchy Again, in my various test with Visualtotals I found that if TopN is greater than the numbers of attribute members (es top 999) then  my ‘Other’ return ‘All’ instead of null! select {[Measures].[Sales Amount] } on columns, generate  (  [Product].[Category].[Category].members  ,  {topcount([Product].[Category].currentmember *[Product].[Product].members, 3, [Measures].[Order Count])   }  ) on rows from [Adventure Works]

Capture posted image from Flash/swf for uploading

This is the first time I've come across this kind of problem before and I'm having trouble approaching it.  I have a swf developed by someone else that posts an image and I have to create a handler of some kind to capture it, name it, then upload it to a directory.  I've tried a couple ways and nothing is working.  this is a quick an dirty approach, just an aspx file<%@ Page Language="C#" %><%@ Import Namespace="Components" %><%@ Import Namespace="System.IO" %><script runat="server">    public partial class upload : System.Web.UI.Page    {        protected void Page_Load(object sender, EventArgs e)        {            string uploadDirectory;            uploadDirectory = Server.MapPath(@"images/");            string imageName = "image.jpg";            string uploadPath = uploadDirectory + imageName;                        //FileUpload imageUpload =

Create database at network drive?

Is it possible to create a SqlServer database at a network drive? Thanks, Ben

copy the image from table to disk drive

i have 2000  image he saved in the table "Employee" and i want to copy this pictures from table to diskdrive and save file name by the ID

Ajax Control Toolkit - ModalPopup displaying behind Flash

HiI have a flash on my page and I need to popup an ajax window, I use ModalPopupExtender. The problem is that ajax popup window always shows behind the flash in Internet explorer and Google Chrome. In firefox there are no such problem.I tried to set wmode="transparent" but id didn't help.Thanks

Embeded flash in an UpdatePanel

Hello I have a 2 flash files inside an UpdatePanel. But they don't reload when there is a postback. How can I make it work?Here is my code:<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"> </cc1:ToolkitScriptManager> <script type="text/javascript" src="flash/swfobject.js"></script> <asp:UpdatePanel runat="server" ChildrenAsTriggers="true" ID="ReviewAndSendUpdatePanel" UpdateMode="Conditional"> <ContentTemplate> <div id="sld3" class="sld3" runat="server" style="margin-top:0px; border:1px solid #000; width:360px; height:240px"> <div id="flashAd1" style="width: 360px; height: 240px"> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("public/flash/house%20drop.swf", "flashAd1", "200", "200", "9", "#FF6600"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.addParam("allowscriptaccess", "samedomain"); so.useExpressInstall('flash/expressinstall.swf'); so.write("

Moving sharepoint database from one drive to other

I am having the sharepoint installed on c drive which doesn't have much space. Is it possible to move the content database to some other drive on the machine. If yes, then what is the procedure and do i have to make changes anywhere related to these changes? Also is there any possibility of something going wrong somewhere during this process? thanks in advance!

Create a Database to other drive in windows 7 and can not use it?

Hi, When I create a database in (for example) Drive E and Detach it and moving it to drive F and attached it gave me an error(Pic 4).When I copy it to Drive Windows(C),gave a message(Pic 2). in Drive C I can Attach database success fully,but in this time the database was ReadOnly And I can't change any things of database(Pic 3). when I change readonly from properties again give an error(Pic 5). This link of Pictures http://rapidshare.com/files/417610898/My_Problems.rar thanx.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend