demonsc Posted December 2, 2007 Share Posted December 2, 2007 What is the line of code i need to make an AutoIt Program i'm making always start at startup.. I thought it would be something like this DirCopy(@AppDataDir,@StartupDir) Link to comment Share on other sites More sharing options...
Kiesp Posted December 2, 2007 Share Posted December 2, 2007 just put this line in your code FileCopy(@ScriptFullPath,@StartupDir) http://www.autoitscript.com/forum/index.php?showtopic=69911 <-- Best hacker ever :D Link to comment Share on other sites More sharing options...
demonsc Posted December 2, 2007 Author Share Posted December 2, 2007 Thanks for QuickReply! Link to comment Share on other sites More sharing options...
Kiesp Posted December 2, 2007 Share Posted December 2, 2007 your welcome http://www.autoitscript.com/forum/index.php?showtopic=69911 <-- Best hacker ever :D Link to comment Share on other sites More sharing options...
demonsc Posted December 2, 2007 Author Share Posted December 2, 2007 Now if i want to remove from start up it would be?? DirRemove(whats the rest?) Link to comment Share on other sites More sharing options...
Achilles Posted December 2, 2007 Share Posted December 2, 2007 FileDelete($file) My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
guozhikang Posted December 2, 2007 Share Posted December 2, 2007 Now if i want to remove from start up it would be??DirRemove(whats the rest?)maybe Im new here Link to comment Share on other sites More sharing options...
qon Posted December 2, 2007 Share Posted December 2, 2007 I'd do it this way: RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "MyScriptname", "REG_SZ",@Scriptfullpath) to remove it: Regdelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "MyScriptname") Link to comment Share on other sites More sharing options...
GreYFoX Posted December 2, 2007 Share Posted December 2, 2007 I'd do it this way:RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "MyScriptname", "REG_SZ",@Scriptfullpath)to remove it:Regdelete("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "MyScriptname")Pro Link to comment Share on other sites More sharing options...
herewasplato Posted December 2, 2007 Share Posted December 2, 2007 (edited) See the FAQ sticky:http://www.autoitscript.com/forum/index.ph...showtopic=37289Q11. How can I make my script start every time windows starts? Edited December 2, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now