Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Detecting System Drive ( urgent help )
Date: Fri, 15 Feb 2008 09:05:03 +0000 (UTC)
Organization: Konem Solutions
Lines: 40
Message-ID: <fp3kjv$ggn$1@fred.mathworks.com>
References: <fp2sop$hsl$1@fred.mathworks.com> <fp3gts$8bc$1@fred.mathworks.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1203066303 16919 172.30.248.35 (15 Feb 2008 09:05:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 15 Feb 2008 09:05:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 842609
Xref: news.mathworks.com comp.soft-sys.matlab:451582


"us " <us@neurol.unizh.ch> wrote in message 
<fp3gts$8bc$1@fred.mathworks.com>...
> "Mamata Kukreja":
> <SNIP looking for his/her disks...
> 
> > how to detect whether
> > its  E: or F:
> > or watever differing from system to system...
> 
> one of the (imcomplete) solutions (on winos')
> 
> % get the list of current drives
>      import java.io.*; 
>      f=File(''); 
>      r=f.listRoots; 
> for i=1:numel(r) 
>      disp(sprintf('%s',char(r(i)))); 
> end 
> % now you'd have to check each one for the
> % contents you're looking for, eg,
>      dir(char(r(1)));
> 
> us
> 
> 
> 


There is a freeware called USBDeview found here
http://www.nirsoft.net/utils/usb_devices_view.html

This freeware looks for all USB devices on your PC. It 
also has command interface, where you can populate the 
results in a text, excel , xml file etc, and then read the 
file through Matlab
Lot of R&D would be required at your end.
HTH
Vihang