raed
asked on
Run app on windows startup
i want to run my VB .exe app. on windows startup what i want is not the startup folder or the run/load comand in win.ini , i don't want the user to be able to remove the app from the startup or win.ini, and each time windows start i want to run the app.
thanx
raed
thanx
raed
and you can find some useful resources at:
http://www.vbcode.com/asp/code.asp?lstCategory=Registry
http://www.vbcode.com/asp/code.asp?lstCategory=Registry
and it should be at HKEY_LOCAL_MACHINE in registry
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How about if you run it as an NT service?
To improve my previous answer replace the last lines with the folowing:
If GetKeyValue(HKEY_LOCAL_MAC HINE, "SOFTWARE\Microsoft\Window s\CurrentV ersion\Run ", "MyApp") <> ApplicationPath
Then
UpdateKey HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Window s\CurrentV ersion\Run ", "MyApp", "ApplicationPath"
End If
where the "ApplicationPath" is the current path of your application.
If GetKeyValue(HKEY_LOCAL_MAC
Then
UpdateKey HKEY_LOCAL_MACHINE, "SOFTWARE\Microsoft\Window
End If
where the "ApplicationPath" is the current path of your application.
raed,
Some of these questions have been open for some time, and records indicate you logged in as recently as this week. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days.
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20261025
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20253068
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193883
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193880
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193879
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193268
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20174535
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20137815
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20130736
Thanks,
Netminder
Community Support Moderator
Experts Exchange
Some of these questions have been open for some time, and records indicate you logged in as recently as this week. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days.
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20261025
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20253068
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193883
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193880
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193879
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20193268
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20174535
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20137815
https://www.experts-exchange.com/jsp/qShow.jsp?ta=visualbasic&qid=20130736
Thanks,
Netminder
Community Support Moderator
Experts Exchange
HKEY_CLASSES_ROOT\Software
and set its value to your application path
GOOD LUCK