Sign in to follow this  
Followers 0
Buffo

Watch drives for changes

3 posts in this topic

Hello

I didn't find anything with the search funtion, so here a new topic.

Is it possible to recognize a new CD or a USB-drive? I want to script a small tool that should replace the windows system autorun dialog with further options. Now I need to recognize if a new media is inserted.

Has onyone an idea? I think it could be realized with some API-calls. I know that a service (don't know the name) handles the behaviour of new plugged devices. But I don't have an idea how to do this with AutoIt.

I would be lucky if you can help me. Perhaps with a small function... :P

Regards,

Buffo

Share this post


Link to post
Share on other sites



Hello

I didn't find anything with the search funtion, so here a new topic.

Is it possible to recognize a new CD or a USB-drive? I want to script a small tool that should replace the windows system autorun dialog with further options. Now I need to recognize if a new media is inserted.

Has onyone an idea? I think it could be realized with some API-calls. I know that a service (don't know the name) handles the behaviour of new plugged devices. But I don't have an idea how to do this with AutoIt.

I would be lucky if you can help me. Perhaps with a small function... :P

Regards,

Buffo

See help file for DriveStatus() and the other Drive* functions.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

I forgot to explain that I know the Drive*-functions.

I don't want to check all drives manually but rather react if the system notifies a changed drive. Why waste system resources if the system already watches the changes? :P

The question is only how to get the information from the OS. In my case it's MS Windows XP Pro (that is the only OS which should be supported).

Someone else with another suggestion out there? :D

If there is really no other way I would implement it with the inbuilt functions but if there is another way I would be happy to hear about.

Regards,

Buffo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0