"Startup" vs "Run" key

G

ganesh

Hi

What is the difference between the running an application off the
Startup folder against running it via the HKLM\HKCU "Run" registry
keys? I have an application that works fine off the Startup folder, but
not via the Run keys.

I know that the commands in Run keys are loaded first, followed by the
ones in Startup folder, but would like to know if there are any other
differences?

regards
ganesh
 
P

Pegasus \(MVP\)

ganesh said:
Hi

What is the difference between the running an application off the
Startup folder against running it via the HKLM\HKCU "Run" registry
keys? I have an application that works fine off the Startup folder, but
not via the Run keys.

I know that the commands in Run keys are loaded first, followed by the
ones in Startup folder, but would like to know if there are any other
differences?

regards
ganesh

I suspect that RUN commands require a fully qualified path.
 
G

ganesh

I am using the same, fully qualified path to the exe in both
cases...except that i cannot specify a startup folder when using the
run keys...hmm...

ganesh
 
G

ganesh

sorry.. i mean we cannot specify a "working directory" when using the
run keys..

ganesh
 
P

Pegasus \(MVP\)

Instead of launching your application directly, launch
it via a batch file and place a "pause" command at the
end so that you can see what's wrong.
 
N

NewScience

Does the Run entry need quotes around it? Are there spaces in there?
Can you give and example?
 
G

Guest

use this command to start it in a working directory:

%windir%\system32\cmd.exe /c start /D"F:\directory\folder"
"F:\folder\program.exe"

where F:\directory\folder is the working directory and program.exe is the
program to start
 
G

Guest

Please not that the previous command is actually one line, but was moved down
to the next line because of the way they did this newsgroup thing. It's
stupid. Don't they know HTML?? jeeeez!!
 
M

Martin

Look in the Event Viewer for any other possible related error messages too.

Martin.
 
N

NewScience

Can't you just create a shortcut, change the Startup in folder, and place
the shortcut in the Run key?
I would still check for quotes, I've run into this many times before with
the Run key on Windows XP.
 
G

ganesh

Thanks all for the suggestions. Actually, I was wondering why MS
provides two different options to start a program an logon and was
curious to know if both the Run commands and the Startup folder end up
doing exactly the same ??

regards
ganesh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top