Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    Programma All'avvio Di Window

    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???

  2. #2
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    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

  3. #3
    peccato che su quel forum girano due persone al giorno
    Sai aiutarmi???

  4. #4
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    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

  5. #5
    Utente di HTML.it L'avatar di Markooo
    Registrato dal
    Mar 2003
    Messaggi
    247
    [supersaibal]Originariamente inviato da Corwin
    (so che mi pentirò di aver usato questa parola...) [/supersaibal]
    :quote:
    Non saprei

  6. #6
    Utente di HTML.it L'avatar di Corwin
    Registrato dal
    Jan 2002
    Messaggi
    584
    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

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.