Chdir & 5.6

Bob Stockler bob at trebor.iglou.com
Wed Nov 22 09:34:02 PST 2006


GCC Consulting wrote (on Wed, Nov 22, 2006 at 11:23:34AM -0500):

| Not sure if this is the correct action for chdir or a bug
| 
| I did the following
| 
| If: 'drive letter"
| Then: xx=getenv("pfdata");sl=chr("92")
| If:
| Then xy=xx{sl{"foobar"
| If:
| Then: chdir xy
| If:
| Then: system batch.bat
| 
| Starting on drive W:\gcc
| 
| When batch.bat ran and I had it do a directory listing, it was in the root
| directory of xx not in xx\foobar.

I looked in Laura's Help Files for filePro 5.0.x and found
examples showing that it should work.

So I used filePro 5.6.04 on SCO OSR6 and this worked:

  @menu    If:
      1  Then: declare tempdir(35,*)
      2  Then: declare thisdir(35,*)
      3  Then: tempdir = "/usr/tmp"
      4  Then: chdir tempdir
      5  Then: thisdir = getcwd()
      6  Then: show "@" { thisdir ; exit

It showed "/var/tmp" (/usr/tmp being a symlink to /var/tmp).

Bob

-- 
Bob Stockler  +-+  bob at trebor.iglou.com  +-+  http://members.iglou.com/trebor


More information about the Filepro-list mailing list