Sign in to follow this  
Followers 0
brodie28

Having a script run when only a particular user logs on

9 posts in this topic

#1 ·  Posted (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 by brodie28

Share this post


Link to post
Share on other sites



@StartupDir current user's Startup folder


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by brodie28

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

For other users, get the profile path from the registry.

EDIT: Valuater beat me to it.

Edited by Skruge

[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#7 ·  Posted (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"

lol

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

This didn't work....

FileCreateShortcut ( @StartupDir, @AutoItExe)

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Nor did this

FileCreateShortcut ( @StartupDir & "\UA.exe", @AutoItExe)

Edit: I am an idiot.

Wrong way around :/

Edited by brodie28

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