<SCRIPT LANGUAGE="VBScript">
Function GetTheParent(DriveSpec)
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
GetTheParent = fso.GetParentFolderName(Drivespec)
Set fso = Nothing
End Function
MsgBox GetTheParent("C:\Program Files\Internet Explorer\IEXPLORE.EXE")
</SCRIPT>