(Jan 13, 2014 05:57 PM)W R T Wrote: Hey HF,
Well I am trying to make a basic repair tool using Python, it's being a real dick to me so I decided to ask for help...
Here's the current code...
PHP Code
<?php
print("Hello and thanks for using Mike's Desktop AIO Repair Tool!")
raw_input("Press any key to continue...")
print("So what would you like to do?")
print("1) Scan HDD for errors & bad sectors.")
print("2) Fix registry errors.")
print("3) Scan for viruses and malware.")
raw_input("Press any key to continue...")
choice == raw_input("Please select an option...")
if choice == "1":
raw_input("Press any key to continue...")
print("Now scanning HDD for errors!")
print("Test...")
What I want it to do is, after it says Now scanning HDD for errors! I want it to open command prompt, BUT I want the Python program to stay OPEN.
Can someone tell me how to make python open Command Prompt BUT keep python running as well?
I can't figure that part out :/
Cheers,
Mike
Add raw_input() to the end of your script, and that will keep the console window open
