I suggest you Google for client/server code. There are loads of examples out there.

There are several ways you can have the server check for a file. If the server is on a Windows machine, you...