Hi Mike,
>
I got an error "Invalid path or file name when I used this command: "SET DEFA TO \\MYSERVER\MYPRG\".I put this command in my main program just to be able to work in network environment. I notice this error when I ran my program under Win XP and Win2000. This error occurs when the other computer is turn off.
>
That's the way it is in Win2000. You can maybe trap the situation using DIR():
IF DIR("\\MYSERVER\MYPRG\")
SET DEFA TO "\\MYSERVER\MYPRG"
ELSE
ENDIF
HTH,
Viv