Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
"MyProgram", "dir:\path\name.exe", _
Alternatively you can add your program executable to startup.
how can i stop that program??? and i want to do is to tranfer a program to my flash disk to my computer that i will not open that file and paste to computer but instead it will enter to computer when is insert it and plug it out
so you want to make some program like virus or you really want to make virus program??
you mean when you connect your flash disk to computer the current program will running from your flash disk and infect the destination pc (copy it self to destination pc). right or not?
if u want to do this u will using autorun file (.inf) to run the program which your flash disk connect to computer.
i don't want to make a virus and infect the computer instead i just want to run it faster and not to copy and paste it just autrun it... and can i i have a sample of auto run file and it's code and i don't really do that as a vandalism instead do it as a good one
actually your current question is you want to make the program run by it self. the answer is put the program in startup or make a file on registry to run the program. now you post the other question to run your program from usb/flash disk and the answer is make the autorun file (.inf) to run the program automatically. your program like a virus behavior.