Run an Application at System Startup

Category:
Registry
Type:
Snippets
Difficulty:
Intermediate
Author:
ZoRP Dominus

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
Add this code to a module. (Set Startup to Sub_Main) What this code does is read the commandline, and add the commandline to Registry->startup... There's no error-checking, so you'll have to type really careful. These funcs are handy for other programs you may want to build...

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: