Jump to content

Auto Copy pasting file into startup


Recommended Posts

I am trying to make a program (kind of like virus software) that would automatically run everytime you start up you computer, regardless of your OS. I know i could use filecopy to put a copy into my startup file, but each windows operating system's startup file is in a little bit different of a location. Is there a way to make a program autorun when you log on to windows?

- Dan [Website]

Link to comment
Share on other sites

I am trying to make a program (kind of like virus software) that would automatically run everytime you start up you computer, regardless of your OS. I know i could use filecopy to put a copy into my startup file, but each windows operating system's startup file is in a little bit different of a location. Is there a way to make a program autorun when you log on to windows?

edit removed my answer Edited by nitekram

All by me:

"Sometimes you have to go back to where you started, to get to where you want to go." 

"Everybody catches up with everyone, eventually" 

"As you teach others, you are really teaching yourself."

From my dad

"Do not worry about yesterday, as the only thing that you can control is tomorrow."

 

WindowsError.gif

WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF

AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send

StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2

AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit  Docs

SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF

Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language

Programming Tips

Excel Changes

ControlHover.UDF

GDI_Plus

Draw_On_Screen

GDI Basics

GDI_More_Basics

GDI Rotate

GDI Graph

GDI  CheckExistingItems

GDI Trajectory

Replace $ghGDIPDll with $__g_hGDIPDll

DLL 101?

Array via Object

GDI Swimlane

GDI Plus French 101 Site

GDI Examples UEZ

GDI Basic Clock

GDI Detection

Ternary operator

Link to comment
Share on other sites

//edit: yeah I'm gona need you to go ahead and post some of your code, to prove its not a virus, or anything malicious..before we help you.

Edited by B3TA_SCR1PT3R

[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Link to comment
Share on other sites

ok I dont want to make any viruses, I'm a 14 year old kid just learning a little about making small programs. I dont really have any code to post yet because i dont know what to start it out with. I was just wondering how to do it, but if you guys cant help me i fully understand that, because we dont want to help autoit viruses be made. well thx for whatever you guys can do for me.

Edit: Oh man i just read my first post i see what you guys are getting at. I have no clue how viruses work, by virus software i meant anti-virus software. I use AVG-Free on my computer and it loads up when i start my computer, but there isnt a copy of it in my startup file. I was just wondering how they do this. thx again

Edited by dandymcgee

- Dan [Website]

Link to comment
Share on other sites

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run\", "AVG", "REG_SZ", "Path-to-program")

Hm... i haven't done much with the registry scripts si i don't know if that is the right syntax XD

Link to comment
Share on other sites

but each windows operating system's startup file is in a little bit different of a location.

No. Its not. D:\Documents and Settings\[username]\Start Menu\Programs\Startup

Use this macro to find it: @StartupDir

Example:

MsgBox(0,'',@StartupDir)
Edited by B3TA_SCR1PT3R

[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Link to comment
Share on other sites

  • 1 month later...

I would say that the best approach, assuming you are the administrator would be to use the RegWrite function, and just link the file from were ever on the computer it is.

Also, if someone already has physical access to your computer or they are the administrator and they run a program without the right info about it and it has a virus, they are just stupid.

P.s. dandymcgee just get Avast Anti Virus, it's free, and get more viruses off your system the AVG ever will.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...