chdir

GCC gccconsulting at comcast.net
Thu Jul 7 08:03:36 PDT 2005


I can't seem to get fp to chdir and list the files I need.

Here is the processing table Windows XP ODBC 1.0.13

::dim xfiles(5);ct(1,.0)="1";ac(1,.0)="1":
::cur_dir=getcwd():
::drive=getenv("pfdata"):
::'where=getenv("pfdir"):
::'where="w:\ccp":
::'new_dir=drive{where:
::'chdir drive{where:
::chdir "w:/":
loop_fi::qq=opendir():
::qa=nextdir():
::xfiles[ac]=qa:
:ct lt "3":ct=ct+"1";GOTO loop_fi:
::ct=ct+"1";ac=ac+"1":
:ac le "5":GOTO loop_fi:
::qz=closedir():
::sl(1,.0)=listbox(xfiles):
::declare cur_dir,new_dir,drive,where:

The directory structure is 

Pfdata = w:
Pfdir  = \ccp

No matter what value I use with chdir, it only lists entries under filepro

Also if I use opendir("*.dbf"), nothing is listed even though there is 1 *.dbf
file in the filepro directory.  

What am I doing wrong?

Richard Kreiss
GCC Consulting  




More information about the Filepro-list mailing list