// If the file path comes from the dialog , it automatically works ,else you need to Specify '\\'
-----------------------------------------------------------------------------------
static void RB_FileNameSplit(Args _args)
{
Filename path;
FileName fileName;
Filename name;
Filename extention;
Str str_filename;
;
fileName = "c:\\Documents and Settings\\balakrishnanr\\Desktop\\practicefile.xls";
[path, name, extention] = fileNameSplit(fileName);
if (!name)
{
str_filename = '';
}
str_filename = name + extention;
print str_filename;
Pause;
}
-----------------------------------------------------------------------------------
static void RB_FileNameSplit(Args _args)
{
Filename path;
FileName fileName;
Filename name;
Filename extention;
Str str_filename;
;
fileName = "c:\\Documents and Settings\\balakrishnanr\\Desktop\\practicefile.xls";
[path, name, extention] = fileNameSplit(fileName);
if (!name)
{
str_filename = '';
}
str_filename = name + extention;
print str_filename;
Pause;
}