Dim filePath = "c:\MonDossier\MonFichier.exe" Dim directoryPath = System.IO.Path.GetDirectoryName(filePath) 'directoryPath = "c:\MonDossier"