|
-
Oct 7th, 2002, 03:49 AM
#1
Thread Starter
Lively Member
Stary a project without paste on startup
How I can start a program when the computer will start? But no one can see the program on start up. is there any way to start a program without keep it on start up. (VB Project)
Thanking you
Rummy
-
Oct 7th, 2002, 04:01 AM
#2
Hyperactive Member
you must add your exe file path in following registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
This wont show the path in startup but it will run your program at startup.
-
Oct 7th, 2002, 04:49 AM
#3
Hyperactive Member
or in Windows 95/98 you can set it in your Win.ini file...
For example:
LOAD=C:\App.exe
But I would also recomment the reg key...
"Experience is something you don't get until just after you need it."
-
Oct 7th, 2002, 05:23 AM
#4
Member
SaveSettingString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "yourappname", App.Path & "\yourapp.exe"
-
Oct 7th, 2002, 05:43 AM
#5
Frenzied Member
Originally posted by soothu kusu
SaveSettingString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "yourappname", App.Path & "\yourapp.exe"
There is no VB function "SaveSettingString". Do you have the declarations and code for this routine? I assume it uses complex registry APIs.
The VB SaveSetting command wil always write to sub-keys in HKey_Current_User\Software\VB and VBA Program Settings. So it won't look in the registry at the correct point.
-
Oct 7th, 2002, 09:47 AM
#6
Hyperactive Member
Correct...
Search http://www.vbworld.com for registry saving... I have my API from there...
"Experience is something you don't get until just after you need it."
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
|