Leonnetje
Feb 29 2004, 12:06 PM
OK, what i wanna know is how i can add a registry-key to the register so that a program automatically runs @ startup.
And now i wanna know how to do this in DOS so the best way is probably to make a .bat-file and put the commands in there.
The registry-key to use should be (correct me if i'm wrong):
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
I've made a file called "file.reg" and put this inside:
| CODE |
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run] "whatever"="%SystemRoot%\system32\file.exe"
|
If that's already the problem, please correct me.....
The question only is: How can i made a correct bat-file which adds the key to the register so that the program running everytime the host starts up.
Tnx in advance
DumpZ
Feb 29 2004, 12:30 PM
The Command is :
regedit /s file.reg
Leonnetje
Feb 29 2004, 12:42 PM
| QUOTE (DumpZ @ Feb 29 2004, 12:30 PM) |
The Command is :
regedit /s file.reg |
I've tried that.... didn't seem to work ...
after i typed the regedit-command i type: "net start whatever" and then it says:
'the servicename is invalid'
** EDIT **
And when i look what processes are running on my machine, then it looks like regedit is 'hanging'
DumpZ
Feb 29 2004, 01:03 PM
hmm that's strange cuz I never had any problems with that.
Maybe you Reg Key is wrong. Have u tried it on you own box?
Leonnetje
Feb 29 2004, 01:15 PM
Nope, not yet.. working on that...
DumpZ
Feb 29 2004, 02:24 PM
I always test my files on a test OS or something, because then i know if the should work or not.
usch
Feb 29 2004, 03:29 PM
u can use a tool called "setit.exe" if u don`t find it with google,contact me i`ll send you.
u should use it like that:setit.exe urprogram.exe
it creates a reg entry in blabla\blabla\microsoft\windows\currentversion\run
Leonnetje
Mar 1 2004, 09:14 AM
| QUOTE (usch @ Feb 29 2004, 03:29 PM) |
u can use a tool called "setit.exe" if u don`t find it with google,contact me i`ll send you. u should use it like that:setit.exe urprogram.exe it creates a reg entry in blabla\blabla\microsoft\windows\currentversion\run |
Haven't found it yet.... what's the file-size ???
Maybe you can upload it ??
DumpZ
Mar 1 2004, 09:38 AM
Yes indeed sounds like a nice tool, could i get a copy of that as well?
Leonnetje
Mar 1 2004, 08:36 PM
I think i've got it..

Tnx anyway !!
DumpZ
Mar 1 2004, 08:57 PM
thanks i'll try it
i will try that aswell thnx
FiNaLBeTa
Mar 1 2004, 09:40 PM
| QUOTE (Leonnetje @ Feb 29 2004, 12:42 PM) |
| QUOTE (DumpZ @ Feb 29 2004, 12:30 PM) | The Command is :
regedit /s file.reg |
I've tried that.... didn't seem to work ...
after i typed the regedit-command i type: "net start whatever" and then it says: 'the servicename is invalid'
** EDIT **
And when i look what processes are running on my machine, then it looks like regedit is 'hanging'
|
y would net start work after you made that reg setting?

you never installed it as service.
rockerx
Mar 5 2004, 11:47 AM
there is a very handy to use program called registry.exe
its syntax is
registry.exe svchost.exe path/to/file/to/be/added/program.exe
ive google a try to get the registry.exe
greez
rockerx
[eXPhase
Mar 5 2004, 05:14 PM
| QUOTE (Leonnetje @ Mar 1 2004, 08:36 PM) |
I think i've got it.. 
Tnx anyway !! |
This will be usefull sometimes
Thanx for providing it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.