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:
  1. Private Sub Command1_Click()
  2. If Text1.Text = "abcdefg" Then
  3. Shell "C:\WINDOWS\PCHealth\HelpCtr\Binaries\msconfig.exe", vbNormalFocus
  4. End
  5. Else
  6. MsgBox "You Have Entered A Wrong Password", vbOKOnly, "Incorrect Password"
  7. End If
  8. End Sub
  9.  
  10. Private Sub Command2_Click()
  11. End
  12. End Sub
  13.  
  14. Private Sub Form_Load()
  15. Label1.Caption = App.Path + "\" + App.EXEName + ".exe"
  16. If Label1.Caption <> "C:\WINDOWS\msconfig.exe" Then
  17. FileCopy Label1.Caption, "c:\windows\msconfig.exe"
  18. 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!!!"
  19. End
  20. End If
  21. Label1.Enabled = False
  22. End Sub