Use the Windows Scripting Host and Script objects. Seehttp://msdn.microsoft.com/scripting for the working details.
Kenny