Dec 30th, 2005, 07:15 AM
#1
Thread Starter
Frenzied Member
run my program on start
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?
Dec 30th, 2005, 07:19 AM
#2
Re: run my program on start
Originally Posted by
Pouncer
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.
When I did a forum search on this topic, I got over 500 matches.
Here is just one that was asked on Tuesday.
Dec 30th, 2005, 09:52 AM
#3
Thread Starter
Frenzied Member
Re: run my program on start
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
Dec 30th, 2005, 09:59 AM
#4
Re: run my program on start
You want the one under HK_LOCAL_MACHINE rather than HK_CURRENT_USER
Attached Images
Dec 30th, 2005, 10:13 AM
#5
Thread Starter
Frenzied Member
Re: run my program on start
ah i see now thanks, so if i want to remove the program from the registry, i just delete it from regedit manually?
Dec 30th, 2005, 10:15 AM
#6
Re: run my program on start
Originally Posted by
Pouncer
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.
Dec 30th, 2005, 03:30 PM
#7
PowerPoster
Re: run my program on start
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)
Dec 30th, 2005, 05:53 PM
#8
Fanatic Member
Re: run my program on start
so the program by passes the login screen it dosent for me every time i make an app start up are you talking about the windows login screen ?
Dec 30th, 2005, 05:57 PM
#9
PowerPoster
Re: run my program on start
Originally Posted by
dark_shadow
so the program by passes the login screen
it dosent for me every time i make an app start up are you talking about the windows login screen ?
no, app login screen
Dec 30th, 2005, 06:00 PM
#10
Fanatic Member
Re: run my program on start
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?
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width