Hello, I am trying to write a program I wanted to know if I disable the case sensitive? I don't know if it is necessary in this instance but I would like to know anyhow, the program I am trying to make is just a very simple program to password protect msconfig, does anyone see any improvements I could make?
This is the code I am using
VB Code:
Private Sub Command1_Click() If Text1.Text = "abcdefg" Then Shell "C:\WINDOWS\PCHealth\HelpCtr\Binaries\msconfig.exe", vbNormalFocus End Else MsgBox "You Have Entered A Wrong Password", vbOKOnly, "Incorrect Password" End If End Sub Private Sub Command2_Click() End End Sub Private Sub Form_Load() Label1.Caption = App.Path + "\" + App.EXEName + ".exe" If Label1.Caption <> "C:\WINDOWS\msconfig.exe" Then FileCopy Label1.Caption, "c:\windows\msconfig.exe" MsgBox "This File Has Been Copied To You Windows Directory And Will Now Close, Please delete this file, msconfig is now password protected!", vbOKOnly, "Read This!!!" End End If Label1.Enabled = False End Sub




Reply With Quote