开发文件上载或下载的程序时,经常会遇到拆分全路径名的情况,就是从全路径名(full path name)中得到文件名和路径。
这个可以通过函数STPU1_EXTRACT_FILENAME实现,
SE37
<img class="alignnone size-full wp-image-3625" src="http://www.baidusap.com/wp-content/uploads/2017-03-11_21-50-32.png" alt="2017-03-11_21-50-32" width="683" height="369" />当然也有其他函数能实现这个功能,比如SPLIT_FILENAME,不过它支持的全路径名长度有限,只有255位。
<img class="alignnone size-full wp-image-3626" src="http://www.baidusap.com/wp-content/uploads/2017-03-11_21-53-23.png" alt="2017-03-11_21-53-23" width="620" height="228" />以上。