i have a similar problem and i have to use vbscript, even when i never used before it was very easy, take a look at this link:
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_22094418.html
matt.
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_22094418.html
matt.