Using COM objects.. check out www.mircscripts.org for more about that..