Real Software Forums
http://forums.realsoftware.com/

Unmount ANY USB stick upon inserting
http://forums.realsoftware.com/viewtopic.php?f=20&t=44819
Page 1 of 1

Author:  RicSum [ Tue Jul 24, 2012 4:35 am ]
Post subject:  Unmount ANY USB stick upon inserting

Hi,
I purchased the MBS USB plugin but due to being a VERY part time RealStudio user I can not achieve my objective :(

I simply want an empty app which checks via a timer if a USB stick gets inserted - if so, then unmount it immediately.
Christian pointed out the three steps I need to take, but I am too dumb to combine them.

Could anyone help with example code, so that I can study the code and then learn from it?

Thank you all in advance.

Author:  Jason_Adams [ Tue Jul 24, 2012 8:08 am ]
Post subject:  Re: Unmount ANY USB stick upon inserting

I have the MBS USB plugin. What are the three steps Christian suggested? :)

Author:  RicSum [ Tue Jul 24, 2012 8:34 am ]
Post subject:  Re: Unmount ANY USB stick upon inserting

Quote:
Well, the task you ask for is based on several smaller tasks.

Those plugin classes help you to get event when you an USB device is connected.
Next step is to get drive letter from the USB device. See here: https://www.mbsplugins.de/archive/2012- ... er_for_an_

Third is to eject it where we have WindowsEjectVolumeMBS function in our plugins.

Author:  Jason_Adams [ Tue Jul 24, 2012 9:02 am ]
Post subject:  Re: Unmount ANY USB stick upon inserting

I see. So you only intend for this to work on Windows, right? Also, do you have the MBS Win plugin? It includes the WindowsWMIMBS class, which is required.

Author:  RicSum [ Tue Jul 24, 2012 11:32 am ]
Post subject:  Re: Unmount ANY USB stick upon inserting

Hi,
yes, I have paid for the plugin and only want it to run windows.

If I can get some example code, I can learn from it, but trying to put it all together from scratch is impossible for me :(

Thanks.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/