Dir()-function difference Novell/Windows - need help

M

Mo

Hello everybody,

I have run into an unexpected problem and would appreciate any help or
comment.

I use the dir(Filespec)-function, in conjunction with a dir()-loop, to
return the appropriate files from a given directory.

Filespec = "p001????.doc"
3 files in a given directory= p0010001.doc, p0010002.doc, p0010003A.doc

If the directory is located on a Windows-server, the routine returns the
files: p0010001.doc, p0010002.doc - which is the desired behaviour.

If the directory is located on a Windows-server, the same routine returns
the files: p0010001.doc, p0010002.doc, p0010003A.doc - which is NOT the
desired behaviour.

TIA,
Peeter
 
A

Andra

You can do some extra check on file name length - ok if it is equal to
Len(Filespec).
Btw, which one is faulty for your task - Novell or Windows?

Mo wrote
 
M

Mo

Hi, and thanks for Your reply.
I can see it´s not easy to understand the problem:)
Here´s the correct version:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top