
08-07-2008, 04:41 PM
|
|
|
Re: Strange behaviour with USB Memory Stick
Hi Ashok,
It wouldn't do any harm - email me offline (martin dot dowie at selexgalileo
dot com).
Cheers
-- Martin
"Ashok" wrote:
> Hi Martin,
>
> We have a requirement which matches with yours. We have an Applicaiton as
> custom shell. when the machine is started, if a USB mem stick is connected it
> has to launch a FTP application. Here are the possible steps which can be
> used in the logic. I am not sure whether i will be able to solve your problem
> with this but you can look into it.
>
> 1) In OnitinDialog or the main function of the Application, call a routine
> which checks for the USB mem stick on the system. You can wait for 10 secs
> for the USB mem stick to be recognized (Normally it is recognized immediately
> as soon as the boot process is complete). Use a wait with a message loop so
> that you are not blocking any messages.
>
> 2) If Mem stick is present, then you can read the files from the thumb drive.
>
> If you need the logic for USB detection, do let me know.
>
> Thanks,
> Ashok
>
> "Martin Dowie" wrote:
>
> > Hmmm, that's very interesting...but I'm not sure it's a solution we can use
> > as there isn't a notion of a 'proper' drive.
> >
> > I think we may need to take a hit, make a mod to the application and 'poll'
> > for the drive, say, every 10 seconds until files are found (or not). Once
> > they are found we can stop polling but we have no way of knowing if there
> > isn't a drive there or just one with no files (the copy's are done using the
> > "system" function call with a DOS-like COPY command in it - not via some
> > file/directory library). Keeps it simple but perhaps too simple! ;-)
> >
> > Thanks for all the replies.
> >
> > Martin
> >
> >
> > "Ralph A. Schmid, dk5ras" wrote:
> >
> > > Martin Dowie <MartinDowie@discussions.microsoft.com> wrote:
> > >
> > > >Can it really take /that/ long for the OS to spot / mount the disk?
> > >
> > > Yes, it can. To improve this, we plug the USB stick into every USB
> > > port during creation of the image, so the system has the proper driver
> > > at hand, and the drive shows up faster.
> > >
> > >
> > > -ras
> > >
> > > --
> > >
> > > Ralph A. Schmid
> > >
> > > http://www.dk5ras.de/ http://www.db0fue.de/
> > > http://www.bclog.de/
> > >
|