ashishjain
1st December 2010, 20:20
How to remove a client file using BaaN IV c4.
I am using remove.local.file() function but unable to delete the file.

Quick reply would be appreciated.

Thanks.

NirajKakodkar
2nd December 2010, 08:10
Hi Ashish,

remove.local.file() wont work in BaaN 4.
In Baan4 AFAIK, there is no local file delete function,

what we can do is use run.prog() and to execute delete <filename> in command promt in case you are using windows client (can also use a .batch file)
In case of Linux client can write a shell script or simply use "rm" command to remove the local file.

Regards,
Niraj kakodkar

BaanInOhio
3rd December 2010, 04:23
You can use the "ottdllfilehand" functions in Baan IV for client file operations. This function should remove a file on the local (client) system.

function extern long remove.local.temp.file(const string path(), ref string local.path())


You should have the ability to use 'remove.local.file' if you include "ottdllbw"


long ret
#pragma used dll "ottdllbw"

ret = remove.local.file("c:\location\file.txt")