Author |
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: March 23 2008 at 17:33 | IP Logged
|
|
|
I thought this should be easy, but I can't figure it out. I'd like to write a macro that reads all the files from a directory.
Any thoughts on how this can be done?
Thanks, Tony
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: March 23 2008 at 21:54 | IP Logged
|
|
|
Ya know, I've never needed to do something like this, but I think you may only be able do this via a script.
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: March 24 2008 at 03:47 | IP Logged
|
|
|
USe the DOS Dir command and redirect the output to a text file. use ph_readfile(.. to read the textfile.
like this e.g:
Dir c:\ > dirc.txt
and then have ph_readfile( .. to read the text and store it in a TEMP or a GV or use similar code TONYNO made for the weathermacro...
Peter
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: March 24 2008 at 07:21 | IP Logged
|
|
|
OK, there is that way.
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: March 24 2008 at 12:41 | IP Logged
|
|
|
That's what I'd come up with. It seemed like there should be some native PH support, maybe I'll get around to writting a plug in some day...
Thanks, Tony
|
Back to Top |
|
|