

![]() |
![]() |
|
|||||||
![]() |
![]() |
| Hardware and Software Talk about or get help with programs, computers, and other related topics. |
![]() |
|
|
LinkBack | Thread Tools |
![]() |
![]() |
|
|
#1 (permalink) |
|
No abbr. allowed.
![]() ![]() High Priest Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
![]() |
I want to have an exe that writes itself into the startup. It will be located in the root of the G: drive. What key do I need to write to the registry to make this happen?
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Test", "TestKey", "REG_SZ", "Hello this is a test") That is an example given in the AutoIt help file, for syntax reference.
__________________
|
|
|
|
![]() |
![]() |
|
Advertisement
|
|
![]() |
![]() |
|
|
#2 (permalink) |
|
Name's Lampy, Mr.Lampy
Senior Member
Moderator Gold Member ![]() ![]() Saint |
How to Remove Startup Programs | O'Reilly Media
after reading that you should understand how to make them run at startup :p
__________________
![]() ![]() ![]() www.ohhaithar.com |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#3 (permalink) |
![]() ![]() ![]() Advocate |
Also check rohitab.com - Feed Your Brain they have lots of source codes that show how to do this.
|
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#4 (permalink) |
|
No abbr. allowed.
![]() ![]() High Priest Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
![]() |
So then it would be:?
RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Wi ndows\CurrentVersion\Run", "SCREWUPURCOMP", "REG_SZ", "G:\screwup.exe")
__________________
|
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#6 (permalink) |
|
No abbr. allowed.
![]() ![]() High Priest Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
![]() |
So then it would be:?
RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Wi ndows\CurrentVersion\Run", "SCREWUPURCOMP", "REG_SZ", "G:\screwup.exe")
__________________
|
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#7 (permalink) |
![]() ![]() ![]() ![]() ![]() Zealot |
Depending upon what language you are using, this will require using a Windows API.By default, Visual Basic 6 can write to the registry without needing any APIs. But that is only to a certain place in the Registry. In order to write to anywhere else in the registry, you need APIs. Don't know how the other languages write to the registry since I don't code in anything else that I've had to use to write to the registry.
__________________
|
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#8 (permalink) |
|
inactive
Gold Member
![]() ![]() ![]() ![]() Disciple Join Date: Sep 2005
Location: South Africa
Posts: 510
![]() |
If you just want it to run for the user who's currently logged in, use this:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Run] If you want it to run for anyone using the computer, use this: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Curr entVersion\Run] And your "RegWrite" looks right to me...
__________________
http://www.hypn.za.net |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#10 (permalink) |
|
No abbr. allowed.
![]() ![]() High Priest Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
![]() |
Sort of. Just something to screw up people at school.
EDIT: Woot, it seems to be working.
__________________
Last edited by Eppie : 10-16-2008 at 09:44 PM. |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#11 (permalink) |
![]() Anti-24kazukin Senior Member
Gold Member Moderator ![]() ![]() ![]() Blessed |
If you are going to write a virus or something like that its best to attach/infect/inject or at least it name it like something that has to be running for windows to operate. That way your average school IT manager won't have a clue how to fix it. I would go with svchost.exe if you are going to do it the nub way and just name it something. If you can, make it as indistinguishable from the real thing as possible.
__________________
![]() ![]() ![]() ![]() ![]() |
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#12 (permalink) |
|
No abbr. allowed.
![]() ![]() High Priest Join Date: Nov 2005
Location: I live everywhere at once. Like God.
Posts: 1,880
![]() |
I don't want to do anything malicious to my school that would get me in trouble. I found out that writing to the registry on school computers is disabled anyway.
__________________
|
|
|
|
![]() |
![]() |
| Sponsored links | |
|
Advertisement
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [C++/CLI] Registry Configurator Class | Dyndrilliac | Programming | 0 | 02-08-2008 04:56 AM |
| bootable registry editor | kds | Hardware and Software | 3 | 03-02-2007 12:57 PM |
| cd key help | ChiTownHustler | Starcraft Hacking Related | 22 | 12-05-2005 08:24 AM |
| What to write in Timer offset... | LockesRabb | Programming | 2 | 06-20-2005 04:12 AM |
| All times are GMT. The time now is 12:03 AM. |

