Eddie Monster
25th October 2002, 19:01
I am using BaanIVc4 with Unix. Client's are all Windows based (mostly NT)..

When commands that interact with files and directories specify the host ! path variables such as below:

mkdir( "host1!/usr/mydir" )

how can you get this to work to check the client's PC for the directory?

I want to check the client for a c:\temp directory. If one does not exist, then I'd like to create one.

Any suggestions?

I tried to use the dir.present() function in odllfilehand, but that only seems to work on the server. I also tried mkdir.rem() and mkdir() but those again only put a directory named 'c:\temp' on our baan server...

Thanks in advance for any help.

mark_h
25th October 2002, 19:56
I think in order to get this to work you need some kind of software on the PC that lets Unix and the PC talk together. At one time I had a product call WinRCP(or something like that) and it would let me type commands on the unix box and create directories. Also the 2 hosts had to be trusted hosts. Since the unix group tighted down things about 2 years ago I can no longer do this.

Not sure if this will work in your case, but can you always send it to the baan\tmp directory? What you could do is create a domain that holds this directory, pull it into the programs, then download the file there. Then if they ever change were Baan is installed you could just change the domain.

There was another thread about doing the remote mkdir, but I do not think that it was ever solved.

Mark

NPRao
25th October 2002, 20:23
Eddie,

Please refer to the following posting -

create.local.directory() (http://www.baanboard.com/baanboard/showthread.php?s=&postid=26072#post26072)

But I am not sure if it works in your BaaN version or not.

Ilansu
27th October 2002, 09:57
Ineed it too but ,it doesn't work on Baan 4c4

look at check client directory . (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=7127&highlight=directory)

Ilan S

Eddie Monster
28th October 2002, 15:35
create.local.directory() worked for me...

Thanks NPRao!

I have another question...

I can create the local directory, copy my file to that directory, and even start the application associated with the file (.PDF for example) with no problem except...

If, in my example, Adobe Acrobat is already open with another .PDF document I get an error. Does anyone know if there is a way to avoid this? I've been playing around with it for a while and can't find a way to detect if the application is already open. I can if I originally opened it through Baan.

The only thing that I could think to do was post a warning message to the user before opening it.

NPRao
28th October 2002, 20:36
Eddie,

I never tried but checking at the Acrobat help I found this option.