Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List of Subfolders
#1
How would one get the name of the subfolders within a folder. For example: C:\Temp\
the subfolders are: Music, Pictures, Documents. . .

Thank you
#2
Use "Enumerate files" dialog.

Code:
Copy      Help
Dir d
foreach(d "C:\Temp\*" FE_Dir 0x1)
,str sPath=d.FileName(1)
,out sPath
#3
Thank you so much.

This helps clearning all the garbarge files we word on a daily basis. What we need is since QM starts automatically everytime we turn on the computers, how do we make sure this specific file is loaded and played? Do you just drag the file into Start Up? I tried that and it didn't work.

Thanks
Denise
#4
you can put it in "init2" if you want it to start when qm starts up.
An old blog on QM coding and automation.

The Macro Hook
#5
It will only work if the same file was used last before the computer was rebooted.

What I need is for a specific file to start when the computer is turned on or rebooted everytime.
#6
Create shortcut to the file in the StartUp folder.
#7
I am not sure if this is what you want, but...

I have a macro called startup that I then call from init2

Code:
Copy      Help
run "\\UNC PATH\" "" "" "" 7
0.1
run "\\UNC PATH\" "" "" "" 7
0.1


It opens the two folders I need
#8
Gintaras Wrote:Create shortcut to the file in the StartUp folder.


Works great, thanks so much. It started the macro after rebooting the computer.

Do I need to place init2 inside the system folder?
#9
It can be anywhere, but should not be in System.

In QM 2.1.8 and above, you can use "QM events - QM file loaded" trigger instead of init2.


Forum Jump:


Users browsing this thread: 2 Guest(s)