Jump to content

How too run at startup


Recommended Posts

How can I make my script run when the computer is switched on?

When the XP logon screen appears it runs it?

Touch

PM me if anything

[center][font="Arial"]If practise makes perfect and no-ones perfect whats the point of practise?[/font]Sorry for my rude attitude when I started here.[/center]

Link to comment
Share on other sites

maybe like this

If @Compiled = 1 Then
                    FileCreateShortcut(@ScriptDir & "\XPClean-One-Click.exe", @StartupCommonDir & "\XPClean-One-Click.lnk", @ScriptDir, "", "This is an *XPClean One-Click* link 8)", "", "", "", @SW_SHOWNORMAL)
                Else
                    FileCreateShortcut(@ScriptDir & "\XPClean-One-Click.au3", @StartupCommonDir & "\XPClean-One-Click.lnk", @ScriptDir, "", "This is an *XPClean One-Click* link 8)", "", "", "", @SW_SHOWNORMAL)
                EndIf

8

NEWHeader1.png

Link to comment
Share on other sites

  • Developers

The shortcuts won't work till somebody logs-in....

Scheduler or Running it as service should be the way to go ...

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Can I get it to run with the login screen?

[center][font="Arial"]If practise makes perfect and no-ones perfect whats the point of practise?[/font]Sorry for my rude attitude when I started here.[/center]

Link to comment
Share on other sites

Can I get it to run with the login screen?

If you want your script to run before someone logs on to the computer, you will need to run it as a service. Check out srvany or XYNTService to find out how to run your script as a service.
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...