Chdir problem
Kenneth Brody
kenbrody at bestweb.net
Wed Sep 1 17:11:24 PDT 2004
GCC Consulting wrote:
[...]
> Using those names, check for the file 997.rpt and see if it had the current
> date.
>
> So, this is how directory structure for one customer would look
>
> c:/edata/Geis-A/macy/ANSI/997/all/997.rpt (remember windows and fp will
> translate the / to a \)
> ^^^^
> this name changes
Actually, no translation is done or needed, as Windows works just fine with
forward slashes.
I'm not sure which part of the name changes, since your arrows point to the
path separator. I'll assume for now that "macy" is the part that changes.
Adjust this as needed.
Use opendir/@dirlist/closedir to read everything in the "c:/edata/Geis-A"
directory. You can then build the fill path and use EXISTS() to see if the
file "c:/edata/Geis-A/"{name{"/ANSI/997/all/997.rpt" exists. If it does,
you can then use @FSTAT[] to check the modification date.
[...]
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
More information about the Filepro-list
mailing list