Chdir problem
Fairlight
fairlite at fairlite.com
Tue Aug 31 17:21:04 PDT 2004
Yo, homey, in case you don' be listenin', GCC Consulting done said:
> What I would like to do is have use filePro 's system command to print
> this report.
>
> Sounds simple however this is a functional acknowledgement from there
> customers and each acknowledgement is located in a different directory.
> It looks something like this:
>
> C:\edate\GEIS-A\customer_name\ANSI\997\all\997.rpt
>
> The variable here is the customer name and the date of the file 997.rpt
>
> I need to search each customer directory, get the name and if 997.rpt's
> date is equal to today's date, store the directory name in an array.
> Once I have all of the positives, I would the loop through the array
> appending the name into the command an printing the report.
>
> Any suggestions on how to best accomplish this will be greatly
> appreciated.
Are you trying to do all this in fP, or use an external?
I mean, if you have a report and simply need to print a report for any
customer name whose 997.rpt is of today's date, this is something that's
trivial to do in perl, and you could just execute *report from inside
there. Unless they did something really cool with time and date as far as
handling files (I remember Ken mentioning some @STAT array or something
very similar, though I forget when it's populated) that might have this
info, it's going to be a PITA to obtain and convert that internally to
anything useful.
What you're trying to do could be done as a cron job, system call, or
whatever, with a tiny little perl program doing the grunt work. Not hard.
Probably not the way you'd like to do it, but it's how -I- would do it,
given the same problem--assuming I understand it fully.
mark->
--
Bring the web-enabling power of OneGate to -your- filePro applications today!
Try the live filePro-based, OneGate-enabled demo at the following URL:
http://www2.onnik.com/~fairlite/flfssindex.html
More information about the Filepro-list
mailing list