registry proplem

D

Desmond

Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is


[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"


What have I done wrong?


Desmond.
 
J

John John

Typically it would look like this:

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"

=====================================================================

Or,

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"

=====================================================================

Note the last line is always an empty return line.

John
 
D

Desmond

Typically it would look like this:

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"

=====================================================================

Or,

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"

=====================================================================

Note the last line is always an empty return line.

John


Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -

- Show quoted text -

Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF

Desmond.
 
D

Desmond

Typically it would look like this:

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"

=====================================================================

Or,

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"

=====================================================================

Note the last line is always an empty return line.

John


Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -

- Show quoted text -

Sorry not working. The key is not there. I thought I might have to
exit regedit and run again?
there were extra '\' in the code and I removed them. stil no joy.

Desmond.
PS no errors in execution
 
J

John John

Desmond said:
Typically it would look like this:

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"

=====================================================================

Or,

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"

=====================================================================

Note the last line is always an empty return line.

John


Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -

- Show quoted text -


Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF

Yes, copy the stuff *between* the ====== lines. 5 lines in the above
example. You know that you can go to the existing registry key and
export it as a template that you can then use to study or modify for
your needs.

John
 
J

John John

Desmond said:
Typically it would look like this:

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"

=====================================================================

Or,

=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"

=====================================================================

Note the last line is always an empty return line.

John


Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -

- Show quoted text -


Sorry not working. The key is not there. I thought I might have to
exit regedit and run again?
there were extra '\' in the code and I removed them. stil no joy.

Make sure that the path to the executable is correct. Is the winlog.exe
program actually on drive E:\? The .reg file has \\ but when merge it
automatically removes one of the \. You can add the value manually at
the key if you want.

To add the value manually just naviagate to
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run] and
create a new string value (REG_SZ) and then enter the correct path to
the executable for the Value data.

John
 
D

Desmond

Desmond said:
Typically it would look like this:
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"
=====================================================================
Or,
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"
=====================================================================
Note the last line is always an empty return line.
John
Desmond wrote:
Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -
- Show quoted text -
Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF

Yes, copy the stuff *between* the ====== lines. 5 lines in the above
example. You know that you can go to the existing registry key and
export it as a template that you can then use to study or modify for
your needs.

John- Hide quoted text -

- Show quoted text -

I have gone directly to the registry key "run"
new string value Enter Winlog
Modify Enter E:\winlog3\winlog.exe

Export this single key to examine. Totaly lost

Desmond.
 
J

John John

Desmond said:
Desmond said:
On 2 May, 17:39, John John <[email protected]> wrote:
Typically it would look like this:
=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"
=====================================================================
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"
=====================================================================

Note the last line is always an empty return line.

Desmond wrote:
Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -
- Show quoted text -
Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF

Yes, copy the stuff *between* the ====== lines. 5 lines in the above
example. You know that you can go to the existing registry key and
export it as a template that you can then use to study or modify for
your needs.

John- Hide quoted text -

- Show quoted text -


I have gone directly to the registry key "run"
new string value Enter Winlog
Modify Enter E:\winlog3\winlog.exe

Export this single key to examine. Totaly lost

Plan B. Why not just create/place a shortcut to the program in your
Startup folder? The Startup folder is processed when Windows starts,
programs and shortcuts in the folder will be launched at boot time.

John
 
D

Desmond

Desmond said:
Desmond wrote:
Typically it would look like this:
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"
=====================================================================
Or,
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"
=====================================================================
Note the last line is always an empty return line.
John
Desmond wrote:
Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -
- Show quoted text -
Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF
Yes, copy the stuff *between* the ====== lines. 5 lines in the above
example. You know that you can go to the existing registry key and
export it as a template that you can then use to study or modify for
your needs.
John- Hide quoted text -
- Show quoted text -
I have gone directly to the registry key "run"
new string value Enter Winlog
Modify Enter E:\winlog3\winlog.exe
Export this single key to examine. Totaly lost

Plan B. Why not just create/place a shortcut to the program in your
Startup folder? The Startup folder is processed when Windows starts,
programs and shortcuts in the folder will be launched at boot time.

John- Hide quoted text -

- Show quoted text -

This is intended to keep an eye on children who are going where they
should not be going. and they have some knoledge of the PC
enviroment. the program that i created is a windows hidden form visual
C++ the registry is the perfect place to start the aplication. log
when the PC starts and stops.
 
J

John John

Desmond said:
Desmond said:
On 2 May, 18:27, John John <[email protected]> wrote:
Desmond wrote:
On 2 May, 17:39, John John <[email protected]> wrote:
Typically it would look like this:
=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"
=====================================================================
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"
=====================================================================

Note the last line is always an empty return line.

Desmond wrote:
Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -
- Show quoted text -
Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF
Yes, copy the stuff *between* the ====== lines. 5 lines in the above
example. You know that you can go to the existing registry key and
export it as a template that you can then use to study or modify for
your needs.
John- Hide quoted text -
- Show quoted text -
I have gone directly to the registry key "run"
new string value Enter Winlog
Modify Enter E:\winlog3\winlog.exe
Export this single key to examine. Totaly lost

Plan B. Why not just create/place a shortcut to the program in your
Startup folder? The Startup folder is processed when Windows starts,
programs and shortcuts in the folder will be launched at boot time.

John- Hide quoted text -

- Show quoted text -


This is intended to keep an eye on children who are going where they
should not be going. and they have some knoledge of the PC
enviroment. the program that i created is a windows hidden form visual
C++ the registry is the perfect place to start the aplication. log
when the PC starts and stops.

It should start from the Run key if you enter the correct path to it in
the value data. When you do it with Regedit do not surround it with
quotation marks when you edit it, the registry editor does that
automatically for you. To export the Run key highlight the Run key in
the left pane and in the Registry Menu select "Export Registry File".
Give the exported file a useful name and select a location where the
file will be easy to find (like the Desktop). The file will be in the
form of a .reg file, you can open it with Notepad for further editing.
To merge the file to the Registry simply double click on it or right
click and select "Merge".

John
 
D

Desmond

Desmond said:
Desmond wrote:
Desmond wrote:
Typically it would look like this:
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"
=====================================================================
Or,
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"
=====================================================================
Note the last line is always an empty return line.
John
Desmond wrote:
Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -
- Show quoted text -
Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF
Yes, copy the stuff *between* the ====== lines. 5 lines in the above
example. You know that you can go to the existing registry key and
export it as a template that you can then use to study or modify for
your needs.
John- Hide quoted text -
- Show quoted text -
I have gone directly to the registry key "run"
new string value Enter Winlog
Modify Enter E:\winlog3\winlog.exe
Export this single key to examine. Totaly lost
Plan B. Why not just create/place a shortcut to the program in your
Startup folder? The Startup folder is processed when Windows starts,
programs and shortcuts in the folder will be launched at boot time.
John- Hide quoted text -
- Show quoted text -
This is intended to keep an eye on children who are going where they
should not be going. and they have some knoledge of the PC
enviroment. the program that i created is a windows hidden form visual
C++ the registry is the perfect place to start the aplication. log
when the PC starts and stops.

It should start from the Run key if you enter the correct path to it in
the value data. When you do it with Regedit do not surround it with
quotation marks when you edit it, the registry editor does that
automatically for you. To export the Run key highlight the Run key in
the left pane and in the Registry Menu select "Export Registry File".
Give the exported file a useful name and select a location where the
file will be easy to find (like the Desktop). The file will be in the
form of a .reg file, you can open it with Notepad for further editing.
To merge the file to the Registry simply double click on it or right
click and select "Merge".

John- Hide quoted text -

- Show quoted text -

Sorry what I wanted to do is to create a notepad style reg edit. so
that I could edit the text firs.
What I am doing is not creating a key but a value into the run key. is
the number 5 in REGEDIT5 the number of lines in the file. the only
backup of this key holds the entire string values. they have for some
unknown reson got 2 backslashes in them. this is odd as in this.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"Winlog2"="E:\\winlog3\\winlog.exe"
 
J

John John

Desmond said:
Desmond said:
On 2 May, 19:30, John John <[email protected]> wrote:
Desmond wrote:
On 2 May, 18:27, John John <[email protected]> wrote:
Desmond wrote:
On 2 May, 17:39, John John <[email protected]> wrote:
Typically it would look like this:
=====================================================================
REGEDIT5

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Some Program"="E:\\Program Files\\Program Folder\\Program.exe /Switch"
=====================================================================
=====================================================================
REGEDIT5
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Winlog2"="E:\\winlog3\\winlog.exe"
=====================================================================

Note the last line is always an empty return line.

Desmond wrote:
Ok so I don't know the registy. I am trying to add a key that has
been created in notepad and saved as a .reg file. here it is
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"Winlog2", "E:\winlog3\winlog.exe"
What have I done wrong?
Desmond.- Hide quoted text -
- Show quoted text -
Thanks for that. Am I right in thinking that It has to start with
REGEDIT5 top line no space (? over the five on the end)
new line space the line you sugested and works. plus a CRLF
Yes, copy the stuff *between* the ====== lines. 5 lines in the above
example. You know that you can go to the existing registry key and
export it as a template that you can then use to study or modify for
your needs.
John- Hide quoted text -
- Show quoted text -
I have gone directly to the registry key "run"
new string value Enter Winlog
Modify Enter E:\winlog3\winlog.exe
Export this single key to examine. Totaly lost
Plan B. Why not just create/place a shortcut to the program in your
Startup folder? The Startup folder is processed when Windows starts,
programs and shortcuts in the folder will be launched at boot time.
John- Hide quoted text -
- Show quoted text -
This is intended to keep an eye on children who are going where they
should not be going. and they have some knoledge of the PC
enviroment. the program that i created is a windows hidden form visual
C++ the registry is the perfect place to start the aplication. log
when the PC starts and stops.

It should start from the Run key if you enter the correct path to it in
the value data. When you do it with Regedit do not surround it with
quotation marks when you edit it, the registry editor does that
automatically for you. To export the Run key highlight the Run key in
the left pane and in the Registry Menu select "Export Registry File".
Give the exported file a useful name and select a location where the
file will be easy to find (like the Desktop). The file will be in the
form of a .reg file, you can open it with Notepad for further editing.
To merge the file to the Registry simply double click on it or right
click and select "Merge".

John- Hide quoted text -

- Show quoted text -


Sorry what I wanted to do is to create a notepad style reg edit. so
that I could edit the text firs.
What I am doing is not creating a key but a value into the run key. is
the number 5 in REGEDIT5 the number of lines in the file. the only
backup of this key holds the entire string values. they have for some
unknown reson got 2 backslashes in them. this is odd as in this.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"Winlog2"="E:\\winlog3\\winlog.exe"

The file as you have it there should work. The REGEDIT5 was a mistake
on my part, I was posting from an NT 4 box, it uses REGEDIT4. I knew
that XP uses version 5 but I forgot that it uses a different header
altogether, I goofed! Windows Registry Editor Version 5.00 is the first
line on all .reg files for XP. Sorry about that.

John
 

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

Similar Threads


Top