Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find the sub-folders within a specified folder?
#1
Hi;
I want to find the sub-folders within a specified folder, how to di it in QM2?
if c:\1\2 and c:\1\3 sub- folder are both in c:\1 folder, how to find these two sub-folderss with QM2?
Thanks.
Gear
#2
Use the Enumerate Files dialog which is in the floating toolbar. It generates code like this:

Code:
Copy      Help
Dir d
foreach(d "c:\1\*" FE_Dir 0x1)
,str sFn=d.FileName()

Then compare folder names, eg using sel:

Code:
Copy      Help
,sel sFn 1
,,case "1"
,,out "folder 1"
,,case "2"
,,out "folder 2"


Forum Jump:


Users browsing this thread: 1 Guest(s)