Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gets all the files in the folder shortcut
#1
Hi,

When I selected some files, folders, and some shortcuts:
The following code, In most cases, works, but it does not get the files in the subfolders in the folder shortcut
How to solve it?

Thanks in advance for any advice and help
david

Macro Macro3
Trigger Aq     Help - how to add the trigger to the macro
Code:
Copy      Help
_s.setclip
key Cc
ARRAY(str) a
if(GetClipboardFiles(a))
,str s ss=a
,foreach s ss
,,SHORTCUTINFO si ;;shortcut
,,if GetShortcutInfoEx(s si)
,,,s=si.target
,,if(dir(s 1)) ;;folder
,,,s+"\*"
,,,Dir d
,,,foreach(d s FE_Dir)
,,,,str sPath=d.FileName(1)
,,,,_s.addline(sPath 1)
,,else ;;file
,,,_s.addline(s 1)
,mes _s


Messages In This Thread
Gets all the files in the folder shortcut - by Davider - 12-28-2022, 02:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)