Ilansu
11th February 2003, 11:12
Hi all

I need to activate an *.exe file from the local pc using app_start() function.
The problem is that I need to look for the file in two directories.
If the first directory exist then I use the dir_path as my parameter
else i use the other directory.
I’m on Baan 4 C4 and the function create.local.directory() returns no value so I cannot use it .
Any suggestions?

Thanks
Ilan S

evesely
11th February 2003, 15:43
Have you tried using the dir.open (http://www.baanboard.com/programmers_manual_baanerp_help_functions_directory_file_operations_dir_open) function? I think it might work for you here.

mark_h
11th February 2003, 17:02
Or you could just use seq.open.local (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_seq_open_local) . If it fails on the first directory then you can try it on the second directory. Using this method means that you know the filename before doing the open. Not sure if that was the case.

Good Luck!

Mark

evesely
11th February 2003, 18:04
Oops, overlooked the local PC piece. Instead of dir.open(), I would use Mark's suggestion or seq.fstat.local() if you don't want to immediately open the file. If all you want to do is check for the existence of the directory, however, I'm not sure what you could do.

Ilansu
12th February 2003, 11:31
Mark & Ed

Thanks for your help .
I'm using the seq.fstat.local() and it works fine.

Ilan S