thanks for your reply.
Here is what I ended up doing.
//------------------------------------------------------
// Formula: getPathAndRptNme
// Returns a string containing the Path and Report Name.
// NOTE: IF the report is running on the Crystal Server,
// use [Crystal Reports Server\] for the path
// because the real path is too long to display.
// Also, hard-code the report name because the filename
// special variable returns the temporary instance name.
// Append the temporary server report instance name for
// debugging purposes.
//------------------------------------------------------
IF Instr(
{@getPath}, "CrystalReports2011ProcessingServer") = 0 THEN
// not running on the server
// return the filename variable [same as Special Field: File Path and Name]
filename
ELSE
// running on the server
// Hard-code the path and report name
"Crystal Reports Server\POST_VENDOR_SERVICE_AUTH.rpt "
+ chr(10) + chr(13)
+ "Temporary Instance Name: " +
{@getFileNme}
//-----------------------------------------------------------------
//-----------------------
// Formula: getPath
// return everything up to the file name
//-----------------------
filename [1 to InstrRev( filename , '\')]
//-----------------------------------------------------------------
//-----------------------
// Formula getFileNme
//-----------------------
filename [ InstrRev ( filename , '\') + 1 to Length (FileName)]
//-----------------------------------------------------------------