Salve a tutti!
Come posso fare, in visual basic, che il programma su cui gira il codice, si salvi automaticamente nei programmi di avvio del computer???
Salve a tutti!
Come posso fare, in visual basic, che il programma su cui gira il codice, si salvi automaticamente nei programmi di avvio del computer???
Ma usare il forum di Visual Basic ti fa schifo ??![]()
I don't wanna have to shout it out / I don't want my hair to fall out
I don't wanna be filled with doubt / I don't wanna be a good boy scout
I don't wanna have to learn to count / I don't wanna have the biggest amount
I don't wanna grow up
peccato che su quel forum girano due persone al giorno
Sai aiutarmi???
Con Visual Basic "liscio" non ce la puoi fare ( a meno di creare un link al programma nell'elenco dei programmi in esecuzione automatica )... se invece vuoi andare a scrivere nel registro di Windows devi usare le API... (so che mi pentirò di aver usato questa parola...)
I don't wanna have to shout it out / I don't want my hair to fall out
I don't wanna be filled with doubt / I don't wanna be a good boy scout
I don't wanna have to learn to count / I don't wanna have the biggest amount
I don't wanna grow up
:quote:[supersaibal]Originariamente inviato da Corwin
(so che mi pentirò di aver usato questa parola...) [/supersaibal]![]()
Non saprei
Scopiazzando qua e la...
set WshShell = CreateObject("WScript.Shell")
Startup = WshShell.SpecialFolders("Startup")
set oShellLink = WshShell.CreateShortcut(Startup & "\Nome_Link.lnk")
oShellLink.TargetPath = "C:\MioPercorso\MioProgramma.exe"
oShellLink.WindowStyle = 1
oShellLink.WorkingDirectory = "C:\MioPercorso"
oShellLink.Save
Così dovresti creare il link nella cartella "Esecuzione Automatica"
I don't wanna have to shout it out / I don't want my hair to fall out
I don't wanna be filled with doubt / I don't wanna be a good boy scout
I don't wanna have to learn to count / I don't wanna have the biggest amount
I don't wanna grow up