mr_suleyman
13th September 2004, 15:21
Hello all ,
I want to control my data file by using function client2server()
My used scripts are follow. My aim is to kontrol whether there is a mydata.txt on windows or not.I couldn't know and get return values of client2server() by using following coding. Can anyone help me ?

filepath = "\\cmsmrkdcexc01\bayidosya\mydata.txt"
dll_id = load_dll("/bse/tools/ttB40_c1/ottdll/odllbw")
func_id = get_function(dll_id, "client2server" )
ret = exec_function(dll_id, func_id, app_id,filepath,"/bse/data.txt",true)

Thanks ...

mark_h
13th September 2004, 16:02
I usually use something like this in my Baan programming:


#pragma used dll ottdllbw
| Open PC file to make sure it exists.
inputfile = seq.open.local(input.file,"r",0)
if(inputfile<0) then
file_err(inputfile)
return(true)
endif
seq.close.local(inputfile)
rc = client2server(input.file,temp.file,0)


Just a quick open to make sure file exists. I probably should make sure the command works, but for some reason I don't.

Mark

mr_suleyman
13th September 2004, 16:35
Thank you mark , I solved my problem with your support