mjpedreira1
19th April 2007, 10:39
Hi,

I only need to know if a file exists in local or not. I´m using the functions seq.open.local and client2server (but these functions do more than I need)

The code I´m testing is

| if seq.open.local("C:\macrosbaan\george7a\macro.xls", "rt", false) > 0 then
if client2server( "/copia08/test1.txt", "C:\macrosbaan\george7a\macro.xls", 1 ) = 0 then
message("There is macro")
else
message("There is not macro")
endif


Thanks a lot,

María

mr_suleyman
19th April 2007, 10:45
I think that you should use server2client command.

That's All

mjpedreira1
19th April 2007, 10:51
Hi,

this function is not valid because my source file is in the client not in the server; depending if a file exists or not in client I`ll do a thing or another on the server.

Thanks,

María

mr_suleyman
19th April 2007, 10:59
If you should use Client2server then it should be
if client2server("C:\macrosbaan\george7a\macro.xls","/copia08/test1.txt", 1 ) = 0
That'all

mjpedreira1
19th April 2007, 11:06
Ok, I was changing the order in the argument´s function.

Thanks,

María

Juergen
19th April 2007, 11:13
Hi,

it should also be possible to use the function seq.fstat.local()

long seq.fstat.local(string filename, ref long nr.bytes)

Return values:
>=0 Success
<0 Error.Probably file does not exists

This retriews information about a specific file on a client system.

Regards,
Juergen

mjpedreira1
19th April 2007, 11:26
Juergen,

this is just the function that I need.


Thanks,

María