tabla.blogg.se

How to make a program run at startup registry vb
How to make a program run at startup registry vb








how to make a program run at startup registry vb

Well I know this kinder old post but there are some horrible questions asked here, there are so many ways to hide programs well I'm new in programming but I spend most of my time creating programs and learning new ways of dowing things, just the simple way to answer you Question, if your program is one form aka Form1 only then you will simply have to click the interface then go to properties then locate "Show Icon on. Wsh.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\MyProgName", "c:\path2yourprogram.exe") i used the code you gave to enable it (dim wsh I made it a feature where you can have it start when Windows starts or you can disable that. I am making a program that will clean up registry and is a sort of a script blocker for files. That should have it load on startup.Ĭomatose: You have helped me out on this to. and you need to change "c:\path2yourprogram.exe" to the path where your program is installed. you need to change "MyProgName" to whatever the name of your application is.

how to make a program run at startup registry vb

Obviously You need to change 2 things in the last line. Wsh.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\MyProgName", "c:\path2yourprogram.exe"

how to make a program run at startup registry vb

It's a good idea to give the user this option in an option form, or msgbox, so they know you are going to do this (I hate when programs try to force startup on me.) dim wsh You can make your program edit the registry on form load.










How to make a program run at startup registry vb