Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REQUEST simple ex. of Folder filenames to variables
#2
With dialog "Enumerate files" you can create this code:
Macro Macro2659
Code:
Copy      Help
Dir d
foreach(d "C:\folder\*" FE_Dir)
,str path=d.FullPath
,out path
,str name=d.FileName
,
If need variables, replace it to:
Macro Macro2659
Code:
Copy      Help
str folder="C:\folder"
str files="*"
Dir d
foreach(d F"{folder}\{files}" FE_Dir)
,str path=d.FullPath
,out path
,str name=d.FileName
,
Or use function GetFilesInFolder and pass variables as its second and third arguments.


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)