Click here to Skip to main content
15,918,889 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Missing Caption in Application Pin
Mycroft Holmes4-Nov-09 22:13
professionalMycroft Holmes4-Nov-09 22:13 
GeneralRe: Missing Caption in Application Pin
mdrizwan_14-Nov-09 22:26
mdrizwan_14-Nov-09 22:26 
AnswerRe: Missing Caption in Application Pin
Shameel5-Nov-09 1:24
professionalShameel5-Nov-09 1:24 
AnswerRe: Missing Caption in Application Pin
Christian Graus5-Nov-09 10:51
protectorChristian Graus5-Nov-09 10:51 
QuestionUsing the registry for automatic startup Pin
RyJaBy4-Nov-09 3:26
RyJaBy4-Nov-09 3:26 
AnswerRe: Using the registry for automatic startup Pin
Dave Kreskowiak4-Nov-09 4:44
mveDave Kreskowiak4-Nov-09 4:44 
GeneralRe: Using the registry for automatic startup Pin
RyJaBy4-Nov-09 6:37
RyJaBy4-Nov-09 6:37 
GeneralRe: Using the registry for automatic startup Pin
Dave Kreskowiak4-Nov-09 8:36
mveDave Kreskowiak4-Nov-09 8:36 
That tab is just a compilation of the various startup locations that track which application should launch when a user logs in. Those include the Run keys under HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER as well as the shortcuts that appear in "Documents and Settings\All Users\Start Menu\Programs\Startup" and "Documents and Settings\<user id="">\Start Menu\Programs\Startup".

Your code won't work for a list of reasons. The first of which is that you have On Error Resume Next in there and it's eating your error messages.

Your code should look like this:
Set wshShell = WScript.CreateObject("WScript.shell")
wshShell.RegWrite "HKCU\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\" & App, filepath



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008
But no longer in 2009...




AnswerRe: Using the registry for automatic startup Pin
Shameel5-Nov-09 1:27
professionalShameel5-Nov-09 1:27 
GeneralRe: Using the registry for automatic startup Pin
Dave Kreskowiak5-Nov-09 4:08
mveDave Kreskowiak5-Nov-09 4:08 
GeneralRe: Using the registry for automatic startup Pin
RyJaBy5-Nov-09 6:57
RyJaBy5-Nov-09 6:57 
GeneralRe: Using the registry for automatic startup Pin
Dave Kreskowiak5-Nov-09 8:15
mveDave Kreskowiak5-Nov-09 8:15 
GeneralRe: Using the registry for automatic startup Pin
RyJaBy6-Nov-09 2:48
RyJaBy6-Nov-09 2:48 
Questiontypes of loop Pin
Matsyendra3-Nov-09 21:32
Matsyendra3-Nov-09 21:32 
AnswerRe: types of loop Pin
Matsyendra3-Nov-09 21:46
Matsyendra3-Nov-09 21:46 
AnswerRe: types of loop Pin
Richard MacCutchan3-Nov-09 23:14
mveRichard MacCutchan3-Nov-09 23:14 
GeneralRe: types of loop Pin
EliottA4-Nov-09 2:36
EliottA4-Nov-09 2:36 
GeneralRe: types of loop Pin
Luc Pattyn4-Nov-09 2:48
sitebuilderLuc Pattyn4-Nov-09 2:48 
GeneralRe: types of loop Pin
Richard MacCutchan4-Nov-09 2:59
mveRichard MacCutchan4-Nov-09 2:59 
GeneralRe: types of loop Pin
Thomas Krojer4-Nov-09 5:40
Thomas Krojer4-Nov-09 5:40 
AnswerRe: types of loop Pin
Steven J Jowett4-Nov-09 7:02
Steven J Jowett4-Nov-09 7:02 
GeneralRe: types of loop Pin
Richard MacCutchan4-Nov-09 7:06
mveRichard MacCutchan4-Nov-09 7:06 
GeneralRe: types of loop Pin
Mycroft Holmes4-Nov-09 21:49
professionalMycroft Holmes4-Nov-09 21:49 
QuestionRe: types of loop Pin
Steven J Jowett4-Nov-09 22:28
Steven J Jowett4-Nov-09 22:28 
AnswerRe: types of loop Pin
Shameel5-Nov-09 1:29
professionalShameel5-Nov-09 1:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.