I have a CMD program that checks xp keys for the PID. the batch file looks like: @echo off CHKPIDS M4YRW-BMBQP-HH2CP-TG37G-Y76RM pause END and the output is: "Key","Grade","PID","Flags" "M4YRW-BMBQP-HH2CP-TG37G-Y76RM","{;OEM-CH_HOME-SP2-37973878;}","(55274-OEM-0011903-00584)","[;OEM;OEM-]" Press any key to continue . . . I want to make a GUI that will ask for the key: M4YRW-BMBQP-HH2CP-TG37G-Y76RM, and output just the PID: 55274-OEM-0011903-00584