HTML is a static strictly markup language, so there's no way for it to do what you want. Heck, you can;t actually run HTML code, Browsers simply interpret it.
Perhaps you mean Javacript, though unless your script is trusted, and is running on IE, it won't work. And even on IE it will ask for permission to muck around with the users PC which is potentially very dangerous.
However I see no reason to do this unless its for an Intranet in an office or some such thing, in which case I'd use VBscript, and a trusted activex control.
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
Behind the Web, Tips and Tricks for Web Development.