While working on a CMD documentation extractor, it came to my attention that GRAFTABL is listed by HELP but "is not recognized as an internal or external command, operable program or batch file." This leads to two questions:
- How can
GRAFTABLbe used, or is there a replacement? - How can documentation for the command be retrieved?
Reference:
- A: Where to see all options for a windows command?
import os, subprocess; print('Pass' if all(code in {0, 1} for code in ((print(word), os.system(f'echo {word} >> complete_help.txt'), os.system(f'help {word} >> complete_help.txt'))[2] for word in (line.split(None, 1)[0] for line in subprocess.Popen('help', stdout=subprocess.PIPE).stdout.read().decode('latin_1').splitlines() if line) if word.isalpha() and word.isupper())) else 'Fail')