i have a laptop i use as my server for my client/server chat program
but how can i make my server program auto execute on my laptop when i switch my laptop on?
Printable View
i have a laptop i use as my server for my client/server chat program
but how can i make my server program auto execute on my laptop when i switch my laptop on?
I could retire if I had a dollar for everything this question has been asked. :DQuote:
Originally Posted by Pouncer
When I did a forum search on this topic, I got over 500 matches. :eek:
Here is just one that was asked on Tuesday.
but this code here
VB Code:
Private Sub Form_Load() 'Add the program to regedit. So it runs each time the computer restarts. Dim sAppEXE As String sAppEXE = App.Path & IIf(Right$(App.Path, 1) = "\", "", "\") & App.EXEName & ".exe" SaveSettingString HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Run", App.Title, Chr$(34) & sAppEXE & Chr$(34) End Sub
i cant see this path in my regedit
HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Run
:confused:
You want the one under HK_LOCAL_MACHINE rather than HK_CURRENT_USER
ah i see now thanks, so if i want to remove the program from the registry, i just delete it from regedit manually?
Yep, that is what I do.Quote:
Originally Posted by Pouncer
i went to use the same code and it added to regedit no problem but when the app loaded on comp startup, it bypassed the login screen and showed the main MDI form. thats not supposed to happen because of security. what do you recommend? also, would like to give user the ability to remove from startup if they wanted to. been on PSC to find something and havent found anything that doesnt do the same thing so far (bypasses login form)
so the program by passes the login screen :confused: it dosent for me every time i make an app start up are you talking about the windows login screen ?
no, app login screenQuote:
Originally Posted by dark_shadow
so why not have the login screen run first? put the start up code in the login screens form_load its all compiled into one right?