Need a little VB Script Cleanup

  I finally managed to get a VB script to work the way I wanted. Now it is time for a little cleanup. The gist of the script was to check for the presence of a keyboard. If someone removes the keyboard from the computer I display a little pop-up on the screen that the keyboard has been removed and then proceed to use devcon to disable some devices. The the keyboard is plugged back in the process reverses and via devcon re-enables the devices that were previously disables. Two "annoying" issues:

1) When I shell to devcon you actually see the window that devcon runs in displayed, Is there any way to supress the devcon windows so the user doesn't see anything?

2) The little windows that pops up displaying "keyboard removed" or "keyboard detected" does not always come to the forefront (it is behind other windows). Is there any way to force it to the forefront?
LVL 11
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jimbecherAuthor Commented:
Is the link right? It looks like it has something to do with Power Management and really doesn't relate to my question does it?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.