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 -