The FileInfo class actually reads the directory entry for the file from the Operating System. It is not a good replacement for the VFP string parsing functions. Look up the Path class for pure string parsing - it has all of the neccessary string parsing functions.
>Glenn,
>
>The FileInfo class contains similiar functionality. Sorry but the following code is C# but should be easily converted.
>
>FileInfo myInfo = new FileInfo("c:\\MyDir\\MyFile.txt");
>MessageBox.Show(myInfo.Name);
>
>The Visual FoxPro Toolkit for .NET (
www.gotdotnet.com) contains direct replacements for VFP functions that can be used from both C# and VB.
>
>Regards
>Neil