Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2834 connectés 

  FORUM HardWare.fr
  Programmation

  Comment créer dans un programme un raccourci windows ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Comment créer dans un programme un raccourci windows ?

n°64969
Lightning
Light be with you !
Posté le 14-10-2001 à 09:37:03  profilanswer
 

voila voila j'ai fais une petite installation pour le programme que j'ai créé mais je ne vois pas comment créer un raccourcis sous windows (un petit fichier .lnk je crois).
Est-ce que qqun sais comment faire ca ?

mood
Publicité
Posté le 14-10-2001 à 09:37:03  profilanswer
 

n°64971
macray
Posté le 14-10-2001 à 09:51:55  profilanswer
 

c'est assez ennuyeux, je ne sais pas sous quelle programme applications tu travaille, mais sous vb utilise une dll de la version VB5, beaucoup plus fiable que celle de VB6, tu la trouveras avec des exemples sur www.vbfrance.com...

n°64979
macray
Posté le 14-10-2001 à 11:29:31  profilanswer
 

Private Declare Function fCreateShellLink Lib "vb6stkit.dll" (ByVal lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal lpstrLinkPath As String, ByVal lpstrLinkArguments As String, ByVal fPrivate As Long, ByVal sParent As String) As Long
 
Private Sub Command1_Click()
 
1- MsgBox (fCreateShellLink "c:\..", "Raccourci", "c:\windows\Calc.exe", "", 0, "" )) 'c:\windows\bureau
 
2 -MsgBox (fCreateShellLink "c:\...", "Raccourci", "c:\windows\Calc.exe", "", 0, "" )) 'c:\windows\(ajouter nom dossier)
 
3- MsgBox (fCreateShellLink "c:\....\mp3", "Raccourci", "c:\windows\Calc.exe", "", 0, "" )) 'c:\(ajouter non dossier)
 
tu peux enlever msgbox si cela te fait plaisir, il te renvera 1 si le raccourci est crée, 0 si il à échoué...
 
 
End Sub

n°65001
Lightning
Light be with you !
Posté le 14-10-2001 à 14:30:56  profilanswer
 

hum et en C ou delphi ca donne quoi ? (desole utilise pas vb ;) )

n°65014
macray
Posté le 14-10-2001 à 15:51:43  profilanswer
 

Sorry, je n'utilise pas le delphi !  ;)  :jap:

n°67459
instantdha​rma
Ailleurs c'est ici
Posté le 24-10-2001 à 17:34:26  profilanswer
 

Je sors ce topic de l'ombre, parce que ça m'intéresse moi aussi, et qu'il y a pas de réponse...
alors ?


---------------
di. / www.diredaredare.org - Ailes de la ville
n°67487
youdontcar​e
Posté le 24-10-2001 à 18:14:24  profilanswer
 

en c++ on passe par une interface COM qui s'appelle qqchose comme IShellLink.


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  Comment créer dans un programme un raccourci windows ?

 

Sujets relatifs
aide sur l'Api32 de windows[HTML/JAVASCRIPT] créer un lien à partir d'un select
Créer un sondage autrement qu'en PHP/ASP[Delphi 4] et API Windows
[VB] Attendre la fin d'un programmeInterroger une base de données MySQL distante grace a un programme C?
[Delphi] créer une arborescence de fichier...Soft windows qui renvoie le type de processeur
[Delphi] Créer un petit chat[base des registres windows] Ecrire sur poste distant - Os Court
Plus de sujets relatifs à : Comment créer dans un programme un raccourci windows ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR