Salut
Envoyé par sdisproFAQ VBScript Comment obtenir le nom et chemin complet d'un script en cours d'exécution ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 dim objFSO, PathScript Set objFSO = Createobject("Scripting.FileSystemObject") PathScript = objFSO.GetParentFolderName(wscript.ScriptFullName) 'Chemin ou se localise le Vbscript MsgBox PathScript,64,"Chemin du Script" MsgBox PathScript & "\LOGICIEL.xls" '.................dans ton code.............................. xl.workbooks.open(PathScript & "\LOGICIEL.xls")
Partager