Hiba_t
26th August 2004, 09:25
I need to check if a certain directory exists on the client's machine or not.. even if the user has only read rights to it.. Is there a function or other way to do that ?

NPRao
26th August 2004, 09:54
Refer to the posting -

Check client directory (http://www.baanboard.com/baanboard/showthread.php?t=7127&highlight=183)

And programmer's manual -

create.local.directory() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_create_local_directory)

Hiba_t
26th August 2004, 10:00
I get that create.local.directory returns no value..

mark_h
26th August 2004, 15:28
Hiba_t,

You should probably fill in your user profile so everyone knows which version of Baan you are working on - it may make a difference on the answer. As for other options none of them are cleaner than what NPR mentioned. I notice now that we upgraded to 4c4 we get a return value for create.local.directory. You should probably run bic_info6.1 ottdllbw and see what your library has in it.

Mark

Hiba_t
26th August 2004, 15:48
I'm working now on BaanIVc.. I tried to use the return value from create.local.directory.. but got a compilation error.

mark_h
26th August 2004, 16:37
I know under our old version 4c3 it did not return a value - what error did you get?

One work around is to place "bat" or some executable on the client. Put the output from the bat file into a temp file. Then from Baan you can execute the bat file and then read the temp file to find out what you need. Not as good as the create.local.directory, but it is an option.

Mark