Sign in to follow this  
Followers 0
FlamingClaw

windows startup

6 posts in this topic

I wanna make my program to run on system startup.How can I do that?Please help me someone......

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I wanna make my program to run on system startup.How can I do that?Please help me someone......

make a program then put it in the startup folder I believe it would be here C:\Documents and Settings\All Users\Start Menu\Programs\Startup

Edited by Rezant

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Here's A Little Example.. That Should Help :)

** Copy And Run This Script.. :) **

ConsoleWrite ('@StartMenuCommonDir.. "' & @StartMenuCommonDir & '"' & @CRLF)
ConsoleWrite ('@StartMenuDir.. "' & @StartMenuDir & '"' & @CRLF)
ConsoleWrite ('@StartupCommonDir.. "' & @StartUpCommonDir & '"' & @CRLF)
ConsoleWrite ('@StartupDir.. "' & @StartupDir & '"' & @CRLF)

; Example Placeing "Test.Au3" Into.. StartupDir 
; FileCopy ('Test.Au3', @StartupDir & '/Test.Au3') 

; Hope This Helps ~~~~~ 
; - John
Edited by John2006

Latest Projects :- New & Improved TCP Chat

Share this post


Link to post
Share on other sites

make a program then put it in the startup folder I believe it would be here C:\Documents and Settings\All Users\Start Menu\Programs\Startup

hi,

if you put the program in this folder, the script is only executed, if someone is login to the computer. If you want to start a program at system startup, even if someone is logged on or not, create a task, which starts at system startup. See schtasks /? or schtasks /create /?

;-)

Stefan

Share this post


Link to post
Share on other sites

there are many ways like

Task Shedule

StartUp Folder

Registry Run

Run as service

but most effective is using registry run

RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", @ScriptName, "REG_SZ", @ScriptFullPath)

add this code in your script where you want the script to add startup run.


Unresolved topics:1- Please help me in Editing or replacing a page in FireFox and IE.Please have a look at them.

Share this post


Link to post
Share on other sites

That's right, but keep in mind, that the program is running under localsystem credentials. This may cause other problems.

So you first have to check, what is your program doing and if you need special access rights (e.g. network share). Then you can decide, which way you use to start the script on system startup.

;-))

Stefan

Share this post


Link to post
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
Sign in to follow this  
Followers 0