Jump to content

Recommended Posts

Posted

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]

Posted

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

Posted

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]

Posted

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.
Posted

This will add your script in the registry to run every time before desktop loads.

RegWrite('HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'RunMe', 'REG_SZ', '"' & @ScriptFullPath & '"')

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
×
×
  • Create New...