搜索文件夹包含的文件夹 [英] search folder for file names containing

查看:120
本文介绍了搜索文件夹包含的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在特定文件夹中显示与特定代码相关的jpg。 jpg名称包含该代码的PART。是否有一个命令我可以用来查找jpg文件(例如 
jpgname $ specificcode

解决方案

< pre class ="prettyprint"> CD< directory target>

* - 提取所有文件名,扩展名为JPG
ln_jpg = ADIR(la_jpg," *。JPG")

* - 插入文字/部分您正在寻找
lc_Search =" PORTION&qu​​ot;

FOR ln_cnt = 1 TO ln_jpg
IF lc_Search


la_jpg [ln_cnt,1]
* - 如果文本包含在name
?la_jpg [ln_cnt,1]
ENDIF
NEXT




i need to display a jpg contained with in a specific folder that relates to a specific code. the jpg name with contain PART of that code. is there a command I can use to find the jpg file (e.g  jpgname$specificcode)

解决方案

CD <directory target>

*- Extract all file names with the extension JPG
ln_jpg = ADIR(la_jpg, "*.JPG")

*- Insert the text/portion you are looking for
lc_Search = "PORTION"    

FOR ln_cnt = 1 TO ln_jpg
  IF lc_Search


la_jpg[ln_cnt,1] *- If the text is contained on the name ?la_jpg[ln_cnt,1] ENDIF NEXT



这篇关于搜索文件夹包含的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆