Sign in to follow this  
Followers 0
doomsday123

Add StartUp Item?

3 posts in this topic

Is there a way I can add a .exe file to the start up list? Thanks.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Is there a way I can add a .exe file to the start up list? Thanks.

<{POST_SNAPBACK}>

FileCopy(file.exe,C:\Documents and Settings\Administrator\Start Menu\Programs\Startup\file.exe)

Or CreateShortcut to the same place

Or even "C:\Documents and settings\" & Envget("USER") & "\Start Menu\Programs\Startup\file.exe"

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Here you go.

They both work, I tested them.

FileCreateShortcut(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE", @StartupDir & "\IEXPLORE.lnk", "", "", "Shortcut made with AutoIt v3")
      FileCreateShortcut(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE", @StartupCommonDir & "\IEXPLORE.lnk", "", "", "Shortcut made with AutoIt v3")

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