use getcmdwintype