Display Only File Name

jc_acosta60

New Member
Hi to all

I have a variable with this value "c:\prueba\prueba.txt", how I can display only the file name?, sometimes have more directories.

Thanks.
 
Hi,

vFileName="c:\prueba\prueba.txt".
display entry(num-entries(vFileName,"\"),vFileName,"\") .

Also lookup File-Info system-handle.
 
Back
Top