Computing.Net > Forums > Programming > Visual Basic 2008

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Visual Basic 2008

Reply to Message Icon

Name: X-TechKid
Date: November 3, 2009 at 18:33:27 Pacific
OS: Windows XP
Subcategory: General
Tags: visual basic, VB 2008, starup entry
Comment:


Hi

I have designed an application which creates an event log of the system.

I want the application to startup every time the OS boots up.

I need some code to change the registry keys to enable the application to startup automaticaly.
Also,
Is there a possibility to hide processes from taskmanager.

Reagards
X-TechKid
Programming is like Teaching a Honest Child



Sponsored Link
Ads by Google

Response Number 1
Name: nbrane
Date: November 4, 2009 at 19:28:01 Pacific
Reply:

i think you need to have the program run reg.exe via shell:

k="\HKLM\Software\Microsoft\Windows\cCurrentversion\Run"

shell ("reg import "+k+" startup"),0

i'm not familiar with where Xp puts its registry startup programs, but in winME its at the value assigned to "k" above.
the safest method would be to use regedit to add the logger program, then export the startup information, then use that as the import file on subsequent runs. Not sure why you would need to edit the registry each time however, but you must have reason for wanting to do that.


0

Response Number 2
Name: X-TechKid
Date: November 8, 2009 at 21:29:51 Pacific
Reply:

Thanks nbrane


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


how to make multiple resp... Vbscript problem


Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Visual Basic 2008

Visual Basic 2008 Binary www.computing.net/answers/programming/visual-basic-2008-binary/20077.html

Visual Basic Project Help Needed... www.computing.net/answers/programming/visual-basic-project-help-needed/17187.html

Visual basics www.computing.net/answers/programming/visual-basics/17249.html