Board index » delphi » filesearch does not find anything after compiling and running without delphi started

filesearch does not find anything after compiling and running without delphi started

Hi there,

I can't find anything in the online-help to solve my problem. Perhaps you
can help me, please:

I want to open a file. The user gives a filename and filesearch looks
whether it exists or not.
While running delphi everything's alright, but when I want my app to run
alone (without delphi on backstage), filesearch doesn't find anything at
all. Here's the line:

pfad:=FileSearch(fachnamen[1], '');

I had a look after my app being in the same directory as the file I wanted
to be opened.

Please help me if you can. You can mail me to

tartar...@t-online.de

Thank you very much for your effort.

Bye

Frank.

 

Re:filesearch does not find anything after compiling and running without delphi started


Frank,

you do not specify a search path for FileSearch, so why do you expect it to
find anything? To check for the existence of a specific file, use
FileExists, with full pathname. To have the user look for a file, use a
TOpenFile dialog component.

Peter Below (TeamB)  100113.1...@compuserve.com)

Other Threads