string pass = "password"; pass = textBox1.Text; if (pass == "password") label1.Text = ("Welcome to Blockland!"); else MessageBox.Show("Incorrect password.");
import osif raw_input("Enter zhe secret password: ") == "blah": os.system("c:\\blockland\\blockland.exe");else: raw_input("Wrong password, press any key to gtfo.")
Code: [Select]import osif raw_input("Enter zhe secret password: ") == "blah": os.system("c:\\blockland\\blockland.exe");else: raw_input("Wrong password, press any key to gtfo.")1) Install Python2) Save as something.py3) ???4) Profit!Python saves the day!
No.......I believe it is 'Shell("path");'
{ import os; label1.Text = ("Welcome to Blockland!"); os.system("C:\\Programs/Blockland/Blockland.exe"); }
The problem is that you're trying to compile python with a c# compiler. Just download python.
I'd rather use Microsoft Visual C#. I've already made gui's for my program. Got anything for Microsoft's?