Boston
21st April 2004, 15:12
Hi,

I am switching my Baan IVc4 install from Windows 2000 to AIX5.2. All my users are running bw from their XP desktops.

I created a an NFS share on a Windows server using MSWindows Services for Unix and mounted this on my IBM box so that users can save reports from Baan there and retrieve them again later from their desktops.

Whenever I write an ASCII file to this NFS share on the IBM and try to open it in notepad in Windows, the return characters seem messed up and the whole file has become one line.

The file does look OK when opened in a vi editor on windows, when I just save and close it again it now shows up OK in notepad as well. This is not something that would work in production however since the users do not have access to a vi editor.

Does anybody have any idea what is causing the file to become 'messed up' and how I can prevent this from happening?
Or for that matter, does anybody have suggestions on easier ways to share files between a UNIX and Windows server?

Thanks a lot for your help.
Ronald.

Hitesh Shah
21st April 2004, 15:40
This is due to difference between windows and unix with respect to linefeed characters .

U can use OS commands like unix2dos (available in solaris) to convert files readable by notepad.

Alternatively instead of using NFS share for windows, u can server2client function of ottdllbw to transfer file from unix to the network folder of windows machine (accessible from PC).

The 3rd argument has to be true for function server2client .

Boston
21st April 2004, 16:49
Hi Hitesh,
Thanks for your reply.
I have been looking at the dllbw object but do not now how to use this.
Could you provide me with some more detail on how to use this function?
Thanks again,
Ronald.

NPRao
21st April 2004, 20:15
Refer to -

client2server() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_client2server)

server2client() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_client_file_access_server2client)

.txt file - Notepad vs Wordpad (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=9069&highlight=line)

New line character question (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=8679&highlight=line)