I have a Python script for Windows that prompts the user for input. I want the script to have the ability to clear all previous user prompts and their history, but my code doesn't work properly.
To achieve this, I am trying the following code:
os.system("cls")
os.system("doskey /history")
os.system("doskey /reinstall")
Command with "cls" works fine, but lines with "doskey" doesn't.
I'm not sure if it will be important or not, but I have compiled this script into an exe using the Nuitka compiler, so it runs as a Windows console application.