Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can you display whats in a folder in a menu
#1
i want to display whats in a in a folder in a menu

example

>folder
fille
fille
fille
fille

thank you for the help
#2
This example displays desktop files. Required QM 2.1.4. To insert foreach statement, use "Enumerate files" dialog.

Code:
Copy      Help
str s
Dir d; str sPath sFn
foreach(d "$Desktop$\*" FE_Dir)
,sFn=d.FileName
,sPath=d.FileName(1)
,s.formata("%s :run ''%s''[]" sFn sPath)
DynamicMenu(s)
#3
i neen more help or more examples or something sorry for being so dumb Confusedhock: Confusedhock:
#4
In the example macro, you need only to replace $Desktop$ to your folder, eg C:\MyFolder\MySubfolder. For convenience, I placed the code into a function. Try the attached macro list file (when asks, click "Open", then select "import").


Attached Files
.qml   Menu from folder sample.qml (Size: 939 bytes / Downloads: 595)


Forum Jump:


Users browsing this thread: 1 Guest(s)