brodie28 Posted July 21, 2006 Share Posted July 21, 2006 (edited) I have never had a script run at start up before, so I was hoping someone could point me in the right direction. I couldn't find anything on it in the help file. It needs to run when only a certain user logs onto windows. (automaticly). It probably has something to do with the @UserName macro? Edit: The @username macro doesn seem to return what I want it to anyway. Edited July 21, 2006 by brodie28 Link to comment Share on other sites More sharing options...
Valuater Posted July 21, 2006 Share Posted July 21, 2006 @StartupDir current user's Startup folder Link to comment Share on other sites More sharing options...
brodie28 Posted July 21, 2006 Author Share Posted July 21, 2006 (edited) So just have the script copy itself into that folder? Edit: I'm not even sure how I would get the script to copt itself... Edited July 21, 2006 by brodie28 Link to comment Share on other sites More sharing options...
Valuater Posted July 21, 2006 Share Posted July 21, 2006 So just have the script copy itself into that folder?yes.... or just put a shortcut in that folder ( thats what i would do )8) Link to comment Share on other sites More sharing options...
Skruge Posted July 21, 2006 Share Posted July 21, 2006 (edited) For other users, get the profile path from the registry. EDIT: Valuater beat me to it. Edited July 21, 2006 by Skruge [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font] Link to comment Share on other sites More sharing options...
brodie28 Posted July 21, 2006 Author Share Posted July 21, 2006 Thanks alot. There's so much to autoit, it is funny how you can be using it for weeks and get stumped on sokmething simple you have never had to do before. Link to comment Share on other sites More sharing options...
Valuater Posted July 21, 2006 Share Posted July 21, 2006 (edited) Thanks alot.There's so much to autoit, it is funny how you can be using it for weeks and get stumped on sokmething simple you have never had to do before.after a couple of years.... (almost)I still get "stumped"lol8) Edited July 21, 2006 by Valuater Link to comment Share on other sites More sharing options...
brodie28 Posted July 21, 2006 Author Share Posted July 21, 2006 This didn't work.... FileCreateShortcut ( @StartupDir, @AutoItExe) Link to comment Share on other sites More sharing options...
brodie28 Posted July 21, 2006 Author Share Posted July 21, 2006 (edited) Nor did this FileCreateShortcut ( @StartupDir & "\UA.exe", @AutoItExe) Edit: I am an idiot. Wrong way around :/ Edited July 21, 2006 by brodie28 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