Try writing a program that invoke a process to call the ptcomm in background to run a batch file. Refer to the Help file under PTComm Manager. I wrote a simple utility for a customer to download a the data and then create a report using Crystal Report in VS2005.
if you are trying to recover a key of an already installed program on your computer there are freeware keyfinders on the internet
Finding lost application install keys is quick and simple with this handy executable, a complete rewrite of a well-received earlier version. Keyfinder Thing's simple, easy-to-understand interface has Wizard-like efficiency. This application quickly scans your system registry for 90 supported software titles and displays product names and icons in the result window. Single-button clicks copy all keys to either a text or HTML file.
http://download.cnet.com/product-key-finder/3000-2094_4-10694022.html Product Key Finder is a single function utility that executes in a GUI, but displays a Command window result. You merely double-click it to display the 25 character Microsoft Windows Product Key.
then store it away for safe keeping not on your computer
hope this helps
Usually answered in minutes!