I don’t think it’s possible, but the System.IO.Path class can help you.
See this help topic in Visual Studio:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfsystemiopathclasstopic.htm
Here’s the C# code which should work with slight modifications in an Expression shape (exept for the Console.WriteLine and define the variables in Orch View)
string myfilename = @\”C:\\dir\\subdir\\file1.xml\”;
string fileonly = System.IO.Path.GetFileName(myfilename);
Console.WriteLine (\”Output: File=\” + fileonly);
Output: File=file1.xml
Neal Walters
http://Biztalk-Training.com – Self-Training Videos