Hi, based on your previous post I guess this is a console application. You
could do the following
Dim strStartupDir As String = CurDir()
Dim strFileName As String = "MyFileName.exe"
MsgBox(Replace(strStartupDir, strFileName, ""))
"kd" <kd@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.com...
Hi All,
Given a full path name of a file, is there a command to extract the
directory path (without the file name)?
Thanks.
kd