0

I Recently Tried To get An App To copy itself To startup folder

My.Computer.Filesystem.Copyfile(application.executeablepath(),"C:\Documents and Settings\All Users\Start Menu\Programs\Startup")

But It Wont Work, A possible solution i thought up is getting the app to place a Shortcut of itself there, but i do not know how to create shortcuts in vb.net

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by Teme64
0
My.Computer.FileSystem.CopyFile(Application.ExecutablePath, 
 "C:\Documents and Settings\All Users\Start Menu\Programs\Startup\" & My.Application.Info.AssemblyName & ".exe")

In my XP machine, Windows Defender warned about changes in Startup apps. I didn't test it in Vista, but I know for sure it won't work in Vista machine ;)

Creating and copying a link would be one solution. But these things are usually done with installer which has permission to write in Startup folder.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.