Sinisterly
[VB.NET]Startup - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Visual Basic & .NET Framework (https://sinister.ly/Forum-Visual-Basic-NET-Framework)
+--- Thread: [VB.NET]Startup (/Thread-VB-NET-Startup)



[VB.NET]Startup - 1llusion - 12-10-2010

Hey all Smile

I would like to ask you, what is your favorite way of startup Smile

I would like to include in my new project as many possibilities possible and combine them Smile

Thanks!!!
Ill release the program once its ready and also parts of source code that could be possibly useful Smile


RE: [VB.NET]Startup - FrostByte_mybb_import5923 - 01-14-2011

whan i add to start up i use different methods depending on what its for

e.g rat the registry or if it a simple program then start menu folder


RE: [VB.NET]Startup - 1llusion - 01-15-2011

Thank you Smile The project I needed this for is dead, but the idea is living so I will release just the code for it Smile


RE: [VB.NET]Startup - 1234hotmaster - 01-17-2011

well, i use normal startup path and All users startup. how to get normal startup path?
well, i use a label to define the path... so...

Way 1:
Code:
label1.text = environment.specialfolder.startup.tostring io.file.copy(application.executablepath, label1.text)

Way 2:
Code:
label1.text = my.computer.filesystem.specialdirectories.mydocuments.replace("My Documents", "") & "\Start Menu\Programs\Startup" io.file.copy(application.executablepath, label1.text)

or i use batch to make a special startup i don't think everyone knows it...

in Policies/Explorer i make a new key called "Run" which means you can add a dir to startup everytime explorer.exe is started which normaly it is at startup Biggrin