Buffo Posted January 1, 2007 Share Posted January 1, 2007 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... Regards, Buffo Link to comment Share on other sites More sharing options...
/dev/null Posted January 1, 2007 Share Posted January 1, 2007 HelloI 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... Regards,BuffoSee help file for DriveStatus() and the other Drive* functions.CheersKurt __________________________________________________________(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 * Link to comment Share on other sites More sharing options...
Buffo Posted January 1, 2007 Author Share Posted January 1, 2007 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? 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? 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now