def GetCommand(pFileType, pCommandName): lKey = pFileType + '\\Shell\\' + pCommandName + '\\Command' print lKey lCommand= reg.QueryValue(reg.HKEY_CLASSES_ROOT, lKey) print lCommand return lCommand