>>Application.ExecutablePath
>
>Yes, but this returns a full path. With the following, I was able to extract it down to the EXE:
>
>
> ' Full path of the application
> cFullPath = System.Windows.Forms.Application.ExecutablePath
>
> ' Get it into FileInfo
> loFileInfo = New System.IO.FileInfo(cFullPath)
>
> ' Application name
> cApplicationName = loFileInfo.Name
>
Probably I didn't understand what you want. Then use static System.IO.Path class to get any part of it as you want.:
System.IO.Path.GetDirectoryName(fileName));
System.IO.Path.GetExtension(fileName));
System.IO.Path.GetFileName(fileName));
System.IO.Path.GetFileNameWithoutExtension(fileName));
System.IO.Path.GetFullPath(fileName));
System.IO.Path.GetPathRoot(fileName));
etc.
Cetin