954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Making A VB Application Place Itself In Startup

Hi,

I've created an AIO tool in Visual Basic and i need to create some code so when the application is opened it places itself in the computer startup folder. I know i can do it manually but i want to do it on school computers (restricted access)

Thanks in anticipation

Evesy
Newbie Poster
12 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

Hi,

I've created an AIO tool in Visual Basic and i need to create some code so when the application is opened it places itself in the computer startup folder. I know i can do it manually but i want to do it on school computers (restricted access)

Thanks in anticipation

Dim aFile as string = Application.ExecutablePath
Dim Split() as string = aFile.split("/")
Dim Filename as string = Split(Ubound(Split))
DIm Path as string = Environment.GetFolderPath(Environment.SpecialFolder.Startup)
System.io.File.move(Afile, Path & "/" & Filename
Huntondoom
Light Poster
48 posts since Jul 2010
Reputation Points: 10
Solved Threads: 5
 

shall i just put the dim features under public class form1 and them the system.io... in the form load event? thanks

Evesy
Newbie Poster
12 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

but why would you want to place it in startup?
if you do implant the code then do it so people can chose if they want that application there yes or no

Huntondoom
Light Poster
48 posts since Jul 2010
Reputation Points: 10
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: