Sign in to follow this  
Followers 0
Rapidnxit

Hide Windows error message when you remove an usb in use

7 posts in this topic

Good evening! What I want to do today is a script that hide or bypasses the Windows error message that appears when you remove a usb key currently in use.

For precision this is the error: '>

Anyone has any ideas? Thanks in advance!

Share this post


Link to post
Share on other sites



Tried anything yourself ?

Jos

I was looking at this script: '?do=embed' frameborder='0' data-embedContent>>

However I have not found a way to modify it for my purpose.

 

This seems a good idea. I've never used this function before so I have to make some tests. I could use it every second (for example) for close this windows(I have also to control what is the name of the window)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Local $title = "Problem Ejecting USB Mass Storage Device"

While 1
    If WinExists("[TITLE:" & $title & "]") Then
       WinClose("[TITLE:" & $title & "]")
    EndIf
WEnd

something like this? :)

Edited by MikahS
1 person likes this

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Share this post


Link to post
Share on other sites
Local $title = "Problem Ejecting USB Mass Storage Device"

While 1
    If WinExists("[TITLE:" & $title & "]") Then
       WinClose("[TITLE:" & $title & "]")
    EndIf
WEnd

something like this? :)

Oh yes I was thinking to do this with WinClose. Thank you so much for writing the code! :) I will try it!

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Thank you so much for writing the code! :) I will try it!

 

I seem to be in an all to generous mood today, but it's my pleasure. ;)

Edited by MikahS
1 person likes this

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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